(_block-or_tx-collection db opts)
Returns spot index range for only the requested collection.
Returns spot index range for only the requested collection.
(block-with-tx-data blocks)
Returns block data as a map, with the following keys:
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
(coerce-tag-flakes db flakes)
(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.
(find-next-valid-node root-node rhs t novelty fast-forward-db?)
(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
(is-tag-flake? f)
Returns true if flake is a root setting flake.
Returns true if flake is a root setting flake.
(non-nil-non-boolean? o)
(search db fparts)
(search db fparts opts)
(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.
(tag-string? possible-tag)
(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
(txn-from-flakes flakes)
Returns vector of transactions from a set of flakes. Each transaction is a map with the following keys:
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
(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]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close