Liking cljdoc? Tell your friends :D

eva.v2.transaction-pipeline.validation

Provides the validation logic for a finalized batch of tx-data.

Provides the validation logic for a finalized batch of tx-data.
raw docstring

*byte-type-eid*clj

source

*card-many*clj

source

*tx-partition*clj

source

->missing-attrsclj

(->missing-attrs cmds attr-idents)

Given the collection of cmds and the collection of attr-idents return the seq of attr-idents that are not represented in the cmds.

Given the collection of cmds and the collection of attr-idents return the
seq of attr-idents that are *not* represented in the cmds.
sourceraw docstring

->nowclj

(->now report)
source

->prev-tx-instclj

(->prev-tx-inst report)
source

->tx-dataclj

(->tx-data report)
source

attr-bytes-size-fnclj

(attr-bytes-size-fn attr)
source

byte-type-and-unique?clj

(byte-type-and-unique? ops)
source

byte-type?clj

(byte-type? ops)
source

card-many-and-unique?clj

(card-many-and-unique? ops)
source

check-commands-value-types!clj

(check-commands-value-types! report)

Given a report which has only Adds/Retracts it does type checks for their values: (i.e :db.type/long attribute cannot have value of type string)

Given a report which has only Adds/Retracts it does type
checks for their values: (i.e :db.type/long attribute
cannot have value of type string)
sourceraw docstring

current-timeclj

(current-time)
source

derive-global-nowclj

(derive-global-now failure-fn local-now last-tx-inst skew-window)
source

ensure-installing-attributeclj

(ensure-installing-attribute tx-data cmd)
source

ensure-no-retractionsclj

(ensure-no-retractions cmds)
source

generate-tx-inst-cmdclj

(generate-tx-inst-cmd report)
source

generic-validationclj

(generic-validation attr report tx-data cmds)
source

leading-underscore-ident?clj

(leading-underscore-ident? ops)
source

raise-skew-exceptionclj

(raise-skew-exception local-now last-tx-inst skew-window)
source

reserved-namespace?clj

(reserved-namespace? nspace)
source

TxDataAccesscljprotocol

by-attrclj

(by-attr tx-data)

Access the tx-data by attribute. Performs non-thread-safe caching.

Access the tx-data by attribute. Performs non-thread-safe caching.

by-eidclj

(by-eid tx-data)

Access the tx-data by eid. Performs non-thread-safe caching.

Access the tx-data by eid. Performs non-thread-safe caching.
source

validateclj

(validate report)
(validate attr report tx-data cmds)

Given a report which has fully expanded, resolved ids, and eliminated redundancy, validate the set of changes against the :db-before.

Given a report which has fully expanded, resolved ids, and eliminated
redundancy, validate the set of changes against the :db-before.
sourceraw docstring

validate-attributecljmultimethod

Validates the set of commands with the given attribute against the db-before, modifies the report and db-after as appropriate to process the transaction.

Validates the set of commands with the given attribute against the db-before,
modifies the report and db-after as appropriate to process the transaction.
sourceraw docstring

validate-bytes-limitsclj

(validate-bytes-limits attr cmds)
source

validate-cardinality-oneclj

(validate-cardinality-one attr cmds)
source

validate-db-fnclj

(validate-db-fn attr cmds)
source

validate-uniquenessclj

(validate-uniqueness attr cmds)
source

within-skew?clj

(within-skew? later prior skew-window)

Is the (+ skew-window later) date >= the prior date?

Is the (+ skew-window later) date >= the prior date?
sourceraw docstring

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

× close