(attributes)
Gets all attributes. This is a superset of the schema.
Gets all attributes. This is a superset of the schema.
(ensure-conforms id migration)
conformity/ensure-conforms wrapper
conformity/ensure-conforms wrapper
(enum-values enum & {:keys [eids?]})
Gets the values of a database enum Usage: (enum-values "schema.type")
Gets the values of a database enum Usage: (enum-values "schema.type")
(index-range attrid start end)
index-range wrapper
index-range wrapper
(nice-query {:keys [find in where]} & [explicit-db])
Automates the :in argument and returns maps instead of vectors
Automates the :in argument and returns maps instead of vectors
(nice-query-attr {:keys [find in where] :as args})
Returns the only attribute of the only row
Returns the only attribute of the only row
(nice-query-one {:keys [find in where] :as args})
(first (nice-query))
(first (nice-query))
(normalize-ref ref)
Normalizes a database reference. {:db/id 17592186045466} -> 123 :schema.type/product -> 17592186045466 [:product/keyword :test-product] -> 17592186045940
Normalizes a database reference. {:db/id 17592186045466} -> 123 :schema.type/product -> 17592186045466 [:product/keyword :test-product] -> 17592186045940
(partitions)
Gets the partitions of the database
Gets the partitions of the database
(read-changes {:keys [db-after tx-data] :as report} query)
Given a report from tx-report-queue and a query, gets the changes
Given a report from tx-report-queue and a query, gets the changes
(resolve-tempid & args)
resolve-tempid wrapper
resolve-tempid wrapper
(retract-entity eid)
Retract an entity by eid
Retract an entity by eid
(rollback)
(rollback t)
Reassert retracted datoms and retract asserted datoms in a transaction, effectively 'undoing' the transaction.
Reassert retracted datoms and retract asserted datoms in a transaction, effectively 'undoing' the transaction.
(schema)
Gets the current database schema
Gets the current database schema
(transaction-log)
Gets the list of all transactions
Gets the list of all transactions
(tx-report-queue & args)
tx-report-queue wrapper
tx-report-queue wrapper
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close