Liking cljdoc? Tell your friends :D

spicerack.core


assoc!clj

(assoc! m k v)

Write the key/value pair (k,v) to hashmap m. Returns v.

Write the key/value pair (`k`,`v`) to hashmap `m`. Returns v.
sourceraw docstring

closeclj

(close db)

Close this db.

Close this `db`.
sourceraw docstring

commitclj

(commit db)

Commit pending changes to this database.

Commit pending changes to this database.
sourceraw docstring

database-default-optsclj

source

dissoc!clj

(dissoc! m k)

Remove key k from hashmap m. Returns the removed value.

Remove key `k` from hashmap `m`. Returns the removed value.
sourceraw docstring

get-dbclj

(get-db data-structure)

Get this data-structure instance's underlying database. Useful if one wants to call commit in a context where the data-structure is in scope but DB is not.

Get this `data-structure` instance's underlying database. Useful if one wants to call commit in a context where the data-structure is in scope but DB is not.
sourceraw docstring

open-databaseclj

(open-database filename & params)

Open a MapDB database backed by filename, attempting to create filename's parent directories if needed. See database-default-opts for the defaults.

Open a MapDB database backed by `filename`, attempting to create filename's parent directories if needed. See database-default-opts for the defaults.
sourceraw docstring

open-hashmapclj

(open-hashmap db hashmap-name & params)

Create or re-open a MapDB hashmap named hashmap-name in db. Params are: :key-serializer and :value-serializer to select serializers for keys and/or values (this is done for performance).

Create or re-open a MapDB hashmap named `hashmap-name` in `db`. Params are: :key-serializer and :value-serializer to select serializers for keys and/or values (this is done for performance).
sourceraw docstring

put!clj

Deprecated! Use assoc! instead. This is an alias for backwards compatibility.

Deprecated! Use assoc! instead. This is an alias for backwards compatibility.
sourceraw docstring

remove!clj

Deprecated! Use dissoc! instead. This is an alias for backwards compatibility.

Deprecated! Use dissoc! instead. This is an alias for backwards compatibility.
sourceraw docstring

rollbackclj

(rollback db)

Rollback pending changes to this database.

Rollback pending changes to this database.
sourceraw docstring

serializersclj

Lookup table of serializer types for MapDB. These are used as optional hints for the database to improve performance while serializing objects.

Lookup table of serializer types for MapDB. These are used as optional hints for the database to improve performance while serializing objects.
sourceraw docstring

update!clj

(update! m k f & args)

Calls function f with the current value associated with k in hashmap m as the parameter, then writes the result back to m. If k has not yet been set, it's previous value will be nil. Returns the value written.

Calls function `f` with the current value associated with `k` in hashmap `m` as the parameter, then writes the result back to m. If k has not yet been set, it's previous value will be nil. Returns the value written.
sourceraw docstring

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

× close