Liking cljdoc? Tell your friends :D

asami.storage

Storage protocols

Storage protocols
raw docstring

Connectionclj/sprotocol

delete-databaseclj/s

(delete-database this)

Removes all resources for a given connection

Removes all resources for a given connection

get-lockclj/s

(get-lock this)

Returns a lock that ensures that this Connection can only be updated by a single thread at a time

Returns a lock that ensures that this Connection can only be updated by a single thread at a time

next-txclj/s

(next-tx this)

Returns the next transaction ID that this connection will use

Returns the next transaction ID that this connection will use

get-nameclj/s

(get-name this)

Retrieves the name of the database

Retrieves the name of the database

get-urlclj/s

(get-url this)

Retrieves the url of the database. Based on the name.

Retrieves the url of the database. Based on the name.

dbclj/s

(db this)

Retrieves the latest database from this connection

Retrieves the latest database from this connection

transact-updateclj/s

(transact-update this update-fn)

Updates a graph in the database with the provided function. Function args are connection and transaction-id

Updates a graph in the database with the provided function.
Function args are connection and transaction-id

releaseclj/s

(release this)

Releases the resources associated with this connection

Releases the resources associated with this connection

transact-dataclj/s

(transact-data this updates! generator-fn)
(transact-data this updates! asserts retracts)

Updates the database with provided data

Updates the database with provided data
source

ConnectionTypeclj/s

source

Databaseclj/sprotocol

as-ofclj/s

(as-of this t)

Retrieves a database as of a given moment, inclusive

Retrieves a database as of a given moment, inclusive

as-of-tclj/s

(as-of-t this)

Returns the t point for a database

Returns the t point for a database

as-of-timeclj/s

(as-of-time this)

Returns the timestamp associated with a database

Returns the timestamp associated with a database

entityclj/s

(entity this id)
(entity this id nested?)

Returns an entity for an identifier

Returns an entity for an identifier

graphclj/s

(graph this)

Returns the internal graph for the database

Returns the internal graph for the database

sinceclj/s

(since this t)

Retrieves a database since a given moment, exclusive

Retrieves a database since a given moment, exclusive

since-tclj/s

(since-t this)

Returns the since point for a database

Returns the since point for a database
source

DatabaseTypeclj/s

source

UpdateDataclj/s

source

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

× close