Liking cljdoc? Tell your friends :D

datahike.writing

Manage all state changes and access to state of durable store.

Manage all state changes and access to state of durable store.
raw docstring

branch-heads-as-commitsclj

(branch-heads-as-commits store parents)
source

commit!clj

(commit! db parents)
(commit! db parents sync?)
source

complete-db-updateclj

(complete-db-update old tx-report)
source

create-commit-idclj

(create-commit-id db)
source

create-databaseclj

(create-database)
(create-database config & opts)
source

database-exists?clj

(database-exists?)
(database-exists? config)
source

db->storedclj

(db->stored db flush?)

Maps memory db to storage layout. Index flushes will add [k v] pairs to pending-writes.

Maps memory db to storage layout. Index flushes will add [k v] pairs to pending-writes.
sourceraw docstring

delete-databaseclj

(delete-database)
(delete-database config)
source

get-and-clear-pending-kvs!clj

(get-and-clear-pending-kvs! store)

Retrieves and clears pending key-value pairs from the store's pending-writes atom. Assumes :pending-writes in store's storage holds an atom of a collection of [key value] pairs.

Retrieves and clears pending key-value pairs from the store's pending-writes atom.
Assumes :pending-writes in store's storage holds an atom of a collection of [key value] pairs.
sourceraw docstring

load-entitiesclj

(load-entities old entities)
source

PDatabaseManagercljprotocol

-create-databaseclj

(-create-database config opts)

-database-exists?clj

(-database-exists? config)

-delete-databaseclj

(-delete-database config)
source

stored->dbclj

(stored->db stored-db store)

Constructs in-memory db instance from stored map value.

Constructs in-memory db instance from stored map value.
sourceraw docstring

stored-db?clj

(stored-db? obj)
source

transact!clj

(transact! old {:keys [tx-data tx-meta]})
source

write-pending-kvs!clj

(write-pending-kvs! store kvs sync?)

Writes a collection of key-value pairs to the store. Handles synchronous and asynchronous writes. Assumes it's called within a go-try- block if sync? is false.

Writes a collection of key-value pairs to the store.
Handles synchronous and asynchronous writes.
Assumes it's called within a go-try- block if sync? is false.
sourceraw docstring

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

× close