Liking cljdoc? Tell your friends :D

fluree.db.dbproto


db?clj/s

(db? db)

IFlureeDbclj/sprotocol

-latest-dbclj/s

(-latest-db db)

Updates a db to the most current version of the db known to this server. Maintains existing permissions

Updates a db to the most current version of the db known to this server. Maintains existing permissions

-add-predicate-to-idxclj/s

(-add-predicate-to-idx db pred-id)

Adds predicate to idx, return updated db.

Adds predicate to idx, return updated db.

-c-propclj/s

(-c-prop db property collection)

Returns schema property for a collection.

Returns schema property for a collection.

-p-propclj/s

(-p-prop db property predicate)

Returns the property specified for the given predicate.

Returns the property specified for the given predicate.

-withclj/s

(-with db block flakes)

Applies flakes to this db as a new block with possibly multiple 't' transactions.

Applies flakes to this db as a new block with possibly multiple 't' transactions.

-subidclj/s

(-subid db ident)
(-subid db ident strict?)

Returns subject ID if exists, else nil

Returns subject ID if exists, else nil

-searchclj/s

(-search db fparts)

Performs a slice, but determines best index to use.

Performs a slice, but determines best index to use.

-rootdbclj/s

(-rootdb db)

Returns root db version of this db.

Returns root db version of this db.

-forward-time-travelclj/s

(-forward-time-travel db flakes)
(-forward-time-travel db tt-id flakes)

-queryclj/s

(-query db query)
(-query db query opts)

Performs a query.

Performs a query.

-with-tclj/s

(-with-t db flakes)

Applies flakes to this db as a new 't', but retains current block.

Applies flakes to this db as a new 't', but retains current block.

-tagclj/s

(-tag db tag-id)
(-tag db tag-id pred)

Returns resolved tag, shortens namespace if pred provided.

Returns resolved tag, shortens namespace if pred provided.

-tag-idclj/s

(-tag-id db tag-name)
(-tag-id db tag-name pred)

Returns the tag sid. If pred provided will namespace tag if not already.

Returns the tag sid. If pred provided will namespace tag if not already.

INodeclj/sprotocol

-lookupclj/s

(-lookup node flake)

Returns the child node which contains the given key

Returns the child node which contains the given key

-lookup-afterclj/s

(-lookup-after node flake)

Returns the child node which comes after the given key

Returns the child node which comes after the given key

-lookup-leafclj/s

(-lookup-leaf node flake)

Returns the leaf node which contains the given key

Returns the leaf node which contains the given key

-lookup-leaf-afterclj/s

(-lookup-leaf-after node flake)

Returns the leaf node which comes after the given key

Returns the leaf node which comes after the given key

IResolveclj/sprotocol

All nodes must implement this protocol. It's includes the minimal functionality necessary to avoid resolving nodes unless strictly necessary.

All nodes must implement this protocol. It's includes the minimal functionality
necessary to avoid resolving nodes unless strictly necessary.

-first-flakeclj/s

(-first-flake node)

Returns the first flake in this node

Returns the first flake in this node

-history-countclj/s

(-history-count node)

Returns how many history nodes are present for this node (if a leaf)

Returns how many history nodes are present for this node (if a leaf)

-resolveclj/s

(-resolve node)

Returns node resolved with data as async channel

Returns node resolved with data as async channel

-resolve-historyclj/s

(-resolve-history node)

Returns the history for data nodes.

Returns the history for data nodes.

-resolve-history-rangeclj/s

(-resolve-history-range node from-t to-t)
(-resolve-history-range node from-t to-t idx-novelty)

Returns the history within specified range of 't' values. From is most recent time.

Returns the history within specified range of 't' values. From is most recent time.

-resolve-to-tclj/s

(-resolve-to-t node t idx-novelty)
(-resolve-to-t node t idx-novelty fast-forward-db?)
(-resolve-to-t node t idx-novelty fast-forward-db? remove-flakes)

Resolves this node at specified transaction 't'. Novelty included for the specified index.

Resolves this node at specified transaction 't'. Novelty included for the specified index.

-rhsclj/s

(-rhs node)

Returns the next node's first flake

Returns the next node's first flake
raw docstring

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

× close