Liking cljdoc? Tell your friends :D

kala.time-travel

Time travel over the storage log: replay, as-of snapshots, 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 snapshots, 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.
raw docstring

as-ofclj

(as-of db t)

The db value as of transaction t (a t counter or a tx entity id).

The db value as of transaction t (a t counter or a tx entity id).
raw docstring

db-withclj

(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.
raw docstring

historyclj

(history db)

The db value containing every assertion and retraction ever transacted, each with its added flag.

The db value containing every assertion and retraction ever transacted,
each with its added flag.
raw docstring

restore-dbclj

(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.
raw docstring

sinceclj

(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.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close