Time travel over the storage log: replay, as-of checkpoints, since views, history, and speculative with(). Rebuilding a db re-applies every log entry through the transaction pipeline's index and schema primitives, so a rebuilt db value equals the live one.
Time travel over the storage log: replay, as-of checkpoints, since views, history, and speculative with(). Rebuilding a db re-applies every log entry through the transaction pipeline's index and schema primitives, so a rebuilt db value equals the live one.
(as-of db t)The db value as of transaction t (a t counter or a tx entity id). Raises :db/pruned-t when the store has been compacted and t is below the checkpoint's base — those entries no longer exist, and a silently wrong answer would misstate what the db believed.
The db value as of transaction t (a t counter or a tx entity id). Raises :db/pruned-t when the store has been compacted and t is below the checkpoint's base — those entries no longer exist, and a silently wrong answer would misstate what the db believed.
(db-with db tx-data)Speculative transaction: applies tx-data against a db value and returns the report {:db-before :db-after :t :tx-data :tempids} without touching storage or the connection.
Speculative transaction: applies tx-data against a db value and returns
the report {:db-before :db-after :t :tx-data :tempids} without touching
storage or the connection.(history db)The db value containing every assertion and retraction ever transacted, each with its added flag. After compaction this is the checkpoint's surviving datoms plus the full post-compaction story — the trail below the base is pruned with the log (ADR-0008).
The db value containing every assertion and retraction ever transacted, each with its added flag. After compaction this is the checkpoint's surviving datoms plus the full post-compaction story — the trail below the base is pruned with the log (ADR-0008).
(restore-db storage)Rebuild the current db value from the complete storage log. Opening an existing database is: open storage, restore-db, continue — nothing is lost or applied twice.
Rebuild the current db value from the complete storage log. Opening an existing database is: open storage, restore-db, continue — nothing is lost or applied twice.
(since db t)A view of the db exposing only datoms asserted after t (a t counter or a tx entity id). Facts from t and earlier are invisible even though they remain current. Views are read-only: transact/with reject them.
A view of the db exposing only datoms asserted after t (a t counter or a tx entity id). Facts from t and earlier are invisible even though they remain current. Views are read-only: transact/with reject them.
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 |