Liking cljdoc? Tell your friends :D
Clojure only.

eva.db-update

Higher level api functions for working with databases

Higher level api functions for working with databases
raw docstring

UpdatableDBcljprotocol

advance-db*clj

(advance-db* db entry)

Update the database state based on the entry. Agnostic to whether or not the log entry is speculative.

Update the database state based on the entry. Agnostic to whether or not the log entry is speculative.

advance-db-to-txclj

(advance-db-to-tx db tx-log target-tx-num)

Given the log and a transaction number advance the database to the target tx.

Given the log and a transaction number advance the database to the target tx.

flush-overlayclj

(flush-overlay db tx-num)

Returns a new db instance with all datoms <= tx-num removed from the overlay.

Returns a new db instance with all datoms <= tx-num removed from the overlay.

safe-advance-dbclj

(safe-advance-db db entry)

Given a transaction log entry, advances the database to a state where the (already validated) tx has been applied. Requires non-speculative log entries. If the log-entry indicates that the indexes have flushed, will (re)load the database state with the new indexes from the backing store.

Given a transaction log entry, advances the database to a state where the (already validated) tx has been applied. Requires non-speculative log entries. If the log-entry indicates that the indexes have flushed, will (re)load the database state with the new indexes from the backing store.

speculatively-advance-dbclj

(speculatively-advance-db db speculative-log-entry)

Create a new fully-local database snapshot based on a speculative log entry.

Create a new fully-local database snapshot based on a speculative log entry.

update-overlayclj

(update-overlay db datoms)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close