Liking cljdoc? Tell your friends :D

datahike.pg.constraints.unique

Removable PostgreSQL UNIQUE INDEX enforcement over durable descriptors.

Removable PostgreSQL UNIQUE INDEX enforcement over durable descriptors.
raw docstring

canonical-key-valueclj

(canonical-key-value value)

Return a hashable value whose equality matches PostgreSQL UNIQUE-key equality for the value carriers used by pg-datahike.

Datahike's array wrapper supplies content equality for primitive/object arrays. Scalar float NaNs need an additional sentinel: PostgreSQL's float4 and float8 btree operators consider all NaNs equal, while Clojure map/set equality considers a JVM NaN unequal even to itself.

Return a hashable value whose equality matches PostgreSQL UNIQUE-key
equality for the value carriers used by pg-datahike.

Datahike's array wrapper supplies content equality for primitive/object
arrays. Scalar float NaNs need an additional sentinel: PostgreSQL's float4
and float8 btree operators consider all NaNs equal, while Clojure map/set
equality considers a JVM NaN unequal even to itself.
sourceraw docstring

conflicting-eidclj

(conflicting-eid db table attrs values)

Find an existing row of table with all attrs equal to values. Descendant rows are excluded so inheritance does not merge physical index domains that PostgreSQL keeps separate.

Find an existing row of `table` with all `attrs` equal to `values`.
Descendant rows are excluded so inheritance does not merge physical index
domains that PostgreSQL keeps separate.
sourceraw docstring

index-descriptorsclj

(index-descriptors db)
source

own-row?clj

(own-row? db descriptor eid)
source

predicate-idclj

source

row-keyclj

(row-key db descriptor eid)
source

unique-arbitersclj

(unique-arbiters db table)
source

validate-db!clj

(validate-db! db)
source

validate-descriptor!clj

(validate-descriptor! db descriptor)
source

validate-report!clj

(validate-report! {:keys [db-before db-after] :as report})

Writer-side invariant gate over a fully resolved Datahike tx report.

Writer-side invariant gate over a fully resolved Datahike tx report.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close