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

conflict-lookupclj

(conflict-lookup db table)
(conflict-lookup db table descriptor)

Return a key lookup for one physical table on this immutable database. Prefer a point lookup when any key component has zero or one AVET hit. For shared or unindexed values, build a composite-key map over the matching rows once. A new execution or writer basis gets a fresh lookup.

Return a key lookup for one physical table on this immutable database.
Prefer a point lookup when any key component has zero or one AVET hit.
For shared or unindexed values, build a composite-key map over the
matching rows once. A new execution or writer basis gets a fresh lookup.
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