Liking cljdoc? Tell your friends :D

fluree.db.query.range


_block-or_tx-collectionclj/s

(_block-or_tx-collection db opts)

Returns spot index range for only the requested collection.

Returns spot index range for only the requested collection.
raw docstring

block-with-tx-dataclj/s

(block-with-tx-data blocks)

Returns block data as a map, with the following keys:

  1. block - block number
  2. t - fluree "time" since ledger creation
  3. sigs - List of transactor signatures that signed this block
  4. instant - instant this block was created, per the transactor.
  5. hash - hash of current block
  6. prev-hash - hash of previous block, if relevant
  7. flakes - list of flakes comprising block
  8. txn - list of transactions in block
Returns block data as a map, with the following keys:
1. block - block number
2. t - fluree "time" since ledger creation
3. sigs - List of transactor signatures that signed this block
4. instant - instant this block was created, per the transactor.
5. hash - hash of current block
6. prev-hash - hash of previous block, if relevant
7. flakes - list of flakes comprising block
8. txn - list of transactions in block
raw docstring

coerce-tag-flakesclj/s

(coerce-tag-flakes db flakes)

collectionclj/s

(collection db name)
(collection db name opts)

Returns spot index range for only the requested collection.

Returns spot index range for only the requested collection.
raw docstring

find-next-valid-nodeclj/s

(find-next-valid-node root-node rhs t novelty fast-forward-db?)

index-rangeclj/s

(index-range db idx)
(index-range db idx opts)
(index-range db idx test match)
(index-range db idx test match opts)
(index-range db idx start-test start-match end-test end-match)
(index-range db idx start-test start-match end-test end-match opts)

Range query across an index as of a 't' defined by the db.

Ranges take the natural numeric sort orders, but all results will return in reverse order (newest subjects and predicates first).

Returns core async channel.

opts: :xform - xform applied to each result individually. This is not used when :chan is supplied. :limit - max number of flakes to return

Range query across an index as of a 't' defined by the db.

Ranges take the natural numeric sort orders, but all results will
return in reverse order (newest subjects and predicates first).

Returns core async channel.

opts:
:xform - xform applied to each result individually. This is not used when :chan is supplied.
:limit - max number of flakes to return
raw docstring

is-tag-flake?clj/s

(is-tag-flake? f)

Returns true if flake is a root setting flake.

Returns true if flake is a root setting flake.
raw docstring

non-nil-non-boolean?clj/s

(non-nil-non-boolean? o)

(search db fparts)
(search db fparts opts)

subject-groups->allow-flakesclj/s

(subject-groups->allow-flakes db
                              subject-groups
                              flake-start
                              subject-start
                              flake-limit
                              subject-limit)

Starting with flakes grouped by subject id, filters the flakes until either flake-limit or subject-limit reached.

Starting with flakes grouped by subject id, filters the flakes until
either flake-limit or subject-limit reached.
raw docstring

tag-sid-endclj/s


tag-sid-startclj/s


tag-string?clj/s

(tag-string? possible-tag)

time-rangeclj/s

(time-range db idx)
(time-range db idx opts)
(time-range db idx test match)
(time-range db idx test match opts)
(time-range db idx start-test start-match end-test end-match)
(time-range db idx start-test start-match end-test end-match opts)

Range query across an index.

Uses a DB, but in the future support supplying a connection and db name, as we don't need a 't'

Ranges take the natural numeric sort orders, but all results will return in reverse order (newest subjects and predicates first).

Returns core async channel.

opts: :from-t - start transaction (transaction 't' is negative, so smallest number is most recent). Defaults to db's t :to-t - stop transaction - can be null, which pulls full history :xform - xform applied to each result individually. This is not used when :chan is supplied. :limit - max number of flakes to return

Range query across an index.

Uses a DB, but in the future support supplying a connection and db name, as we don't need a 't'

Ranges take the natural numeric sort orders, but all results will
return in reverse order (newest subjects and predicates first).

Returns core async channel.

opts:
:from-t - start transaction (transaction 't' is negative, so smallest number is most recent). Defaults to db's t
:to-t - stop transaction - can be null, which pulls full history
:xform - xform applied to each result individually. This is not used when :chan is supplied.
:limit - max number of flakes to return
raw docstring

txn-from-flakesclj/s

(txn-from-flakes flakes)

Returns vector of transactions from a set of flakes. Each transaction is a map with the following keys:

  1. db - the associated ledger
  2. tx - a map containing all transaction data in the original cmd
  3. nonce - the nonce
  4. auth - the authority that submitted the transaction
  5. expire - expiration
Returns vector of transactions from a set of flakes.
Each transaction is a map with the following keys:
1. db - the associated ledger
2. tx - a map containing all transaction data in the original cmd
3. nonce - the nonce
4. auth - the authority that submitted the transaction
5. expire - expiration
raw docstring

value-with-nil-predclj/s

(value-with-nil-pred idx start-flake end-flake)

Checks whether an index range is :spot, starts with [s1 -1 o1] and ends with [s1 int/max p1]

Checks whether an index range is :spot, starts with [s1 -1 o1] and ends with [s1 int/max p1]
raw docstring

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

× close