Provides the validation logic for a finalized batch of tx-data.
Provides the validation logic for a finalized batch of tx-data.
(->missing-attrs cmds attr-idents)Given the collection of cmds and the collection of attr-idents return the seq of attr-idents that are not represented in the cmds.
Given the collection of cmds and the collection of attr-idents return the seq of attr-idents that are *not* represented in the cmds.
(check-commands-value-types! report)Given a report which has only Adds/Retracts it does type checks for their values: (i.e :db.type/long attribute cannot have value of type string)
Given a report which has only Adds/Retracts it does type checks for their values: (i.e :db.type/long attribute cannot have value of type string)
(by-attr tx-data)Access the tx-data by attribute. Performs non-thread-safe caching.
Access the tx-data by attribute. Performs non-thread-safe caching.
(by-eid tx-data)Access the tx-data by eid. Performs non-thread-safe caching.
Access the tx-data by eid. Performs non-thread-safe caching.
(validate report)(validate attr report tx-data cmds)Given a report which has fully expanded, resolved ids, and eliminated redundancy, validate the set of changes against the :db-before.
Given a report which has fully expanded, resolved ids, and eliminated redundancy, validate the set of changes against the :db-before.
Validates the set of commands with the given attribute against the db-before, modifies the report and db-after as appropriate to process the transaction.
Validates the set of commands with the given attribute against the db-before, modifies the report and db-after as appropriate to process the transaction.
(within-skew? later prior skew-window)Is the (+ skew-window later) date >= the prior date?
Is the (+ skew-window later) date >= the prior date?
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |