Liking cljdoc? Tell your friends :D

naga.store

Storage API for talking to external storage

Storage API for talking to external storage
raw docstring

get-storage-handleclj

(get-storage-handle {type :type store :store :as config})

Creates a store of the configured type. Throws an exception for unknown types.

Creates a store of the configured type. Throws an exception for unknown types.
sourceraw docstring

node-labelclj

(node-label s n)

Returns a keyword label for a node

Returns a keyword label for a node
sourceraw docstring

register-storage!clj

(register-storage! store-id factory-fn)
(register-storage! store-id factory-fn shutdown-fn)

Registers a new storage type

Registers a new storage type
sourceraw docstring

registered-storesclj

source

retrieve-contentsclj

(retrieve-contents store)

Convenience function to retrieve the contents of the entire store

Convenience function to retrieve the contents of the entire store
sourceraw docstring

shutdownclj

(shutdown)
source

shutdown-fnsclj

source

Storagecljprotocol

queryclj

(query store output-pattern patterns)

Resolves a set of patterns (if not already resolved), joins the results, and projects the output. The output can contain constant values as well as selected variables.

Resolves a set of patterns (if not already resolved), joins the results, and projects the output. The output can contain constant values as well as selected variables.

container-propertyclj

(container-property store data)

Returns the property to use to indicate a containership relation for given data. Must be in the naga namespace

Returns the property to use to indicate a containership relation for given data. Must be in the naga namespace

count-patternclj

(count-pattern store pattern)

Counts the size of a pattern resolition against storage

Counts the size of a pattern resolition against storage

resolve-patternclj

(resolve-pattern store pattern)

Resolves a pattern against storage

Resolves a pattern against storage

query-insertclj

(query-insert store assertion-patterns patterns)

Resolves a set of patterns, joins them, and inserts the set of resolutions

Resolves a set of patterns, joins them, and inserts the set of resolutions

commit-txclj

(commit-tx store)

Commits a transaction, if supported

Commits a transaction, if supported

start-txclj

(start-tx store)

Starts a transaction, if supported

Starts a transaction, if supported

node-type?clj

(node-type? store p n)

Returns true if the value refered to by a property can be a graph node

Returns true if the value refered to by a property can be a graph node

node-idclj

(node-id store n)

Returns a id for a node. Numbers are good

Returns a id for a node. Numbers are good

assert-dataclj

(assert-data store data)

Inserts new axioms

Inserts new axioms

data-propertyclj

(data-property store data)

Returns the property to use for given data. Must be in the naga namespace, and start with 'first'.

Returns the property to use for given data. Must be in the naga namespace, and start with 'first'.

new-nodeclj

(new-node store)

Allocates a node for the store

Allocates a node for the store
source

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

× close