(cloud) makes ledger running balances fast and smooth

This commit is contained in:
2023-03-23 12:18:35 -07:00
parent cfc5c561c6
commit e810612fbb
12 changed files with 679 additions and 438 deletions

View File

@@ -663,6 +663,12 @@
(defn random-tempid []
(str (UUID/randomUUID)))
(defn pull-id [db id]
(ffirst (dc/q '[:find ?i
:in $ ?i]
db
id)))
(defn pull-attr [db k id]
(get (dc/pull db [k] id) k))