The KVDBable protocol is supported by types that can be coerced into a KVDB instance.
The KVDBable protocol is supported by types that can be coerced into a KVDB instance.
(to-kvdb x)
Convert a supported KVDB type into a full KVDB instance.
Convert a supported KVDB type into a full KVDB instance.
All records returned by KVDB functions will satisfy the KVDBEntry protocol.
All records returned by KVDB functions will satisfy the KVDBEntry protocol.
(entry? x)
(key entry)
(revision entry)
(value entry)
The KVDB protocol defines common operations for mutable key/value databases.
The KVDB protocol defines common operations for mutable key/value databases.
(create! kvdb key value)
Creates an entry in the database. Throws an exception when the key is already present. Returns the new entry.
Creates an entry in the database. Throws an exception when the key is already present. Returns the new entry.
(mutable-kvdb? x)
Test if a value supports the MutableKVDB protocol.
Test if a value supports the MutableKVDB protocol.
(remove! kvdb key revision)
Removes an entry from the database. Asserts the entry's revision matches the provided revision. Returns the final state of the entry.
Removes an entry from the database. Asserts the entry's revision matches the provided revision. Returns the final state of the entry.
(replace! kvdb key revision new-value)
Replaces the value of an entry in the database with a new value. Asserts the entry's revision matches the provided revision. Returns the new state of the entry.
Replaces the value of an entry in the database with a new value. Asserts the entry's revision matches the provided revision. Returns the new state of the entry.
The OverridableKVDB protocol provides support for overriding protocol implementations on a KVDB instance.
The OverridableKVDB protocol provides support for overriding protocol implementations on a KVDB instance.
(overridable-kvdb? x)
Test if a value supports the OverridableKVDB protocol.
Test if a value supports the OverridableKVDB protocol.
(overridden kvdb)
Return a map of all overridden KVDB methods on a KVDB instance.
Return a map of all overridden KVDB methods on a KVDB instance.
(pop-overrides kvdb)
Remove the prior set of overridden methods from an OverridableKVDB.
Remove the prior set of overridden methods from an OverridableKVDB.
(push-overrides kvdb implementations-map)
Overlay a set of overriden KVDB protocol methods on a KVDB instance.
Overlay a set of overriden KVDB protocol methods on a KVDB instance.
The PageableKVDB protocol provides a resumable mechanism for retrieving pages of database entries.
The PageableKVDB protocol provides a resumable mechanism for retrieving pages of database entries.
(page kvdb starting-key limit)
Returns a page of up to 'limit results starting from 'starting-key inclusively.
Returns a page of up to 'limit results starting from 'starting-key inclusively.
(pageable-kvdb? x)
Test if a value supports the PageableKVDB protocol.
Test if a value supports the PageableKVDB protocol.
The KVDB protocol defines common operations for key/value databases.
The KVDB protocol defines common operations for key/value databases.
(entries kvdb)
Returns a sequence of all key/value entries in the databse. Will only throw exceptions when unable to communicate wth the database.
Returns a sequence of all key/value entries in the databse. Will only throw exceptions when unable to communicate wth the database.
(fetch kvdb k missing-value)
Retrieves the entry for a key from the database. Returns 'misising-value when the key is not present. Will only throw exceptions when unable to communicate with the database.
Retrieves the entry for a key from the database. Returns 'misising-value when the key is not present. Will only throw exceptions when unable to communicate with the database.
(readable-kvdb? x)
Test if a value supports the ReadableKVDB protocol.
Test if a value supports the ReadableKVDB protocol.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close