Liking cljdoc? Tell your friends :D

eacl.datahike.core

Datahike construction shim over the shared client orchestration (backend-unification, D-7). Everything here is genuinely Datahike-specific: index access for managed stamps (including attribute-refs representations), the snapshot adapter, schema installation, and transaction submission. The nine public operations, snapshot-context assembly, cursor plumbing, and cache wiring live once in eacl.client.orchestration.

Datahike construction shim over the shared client orchestration
(backend-unification, D-7). Everything here is genuinely
Datahike-specific: index access for managed stamps (including
attribute-refs representations), the snapshot adapter, schema
installation, and transaction submission. The nine public operations,
snapshot-context assembly, cursor plumbing, and cache wiring live once
in eacl.client.orchestration.
raw docstring

cache-content-revisionclj

(cache-content-revision client)

Returns this client's process-local reusable-cache content revision.

Returns this client's process-local reusable-cache content revision.
raw docstring

cache-statsclj

(cache-stats client)

Returns private completed-cache counters for one Datahike EACL client.

Returns private completed-cache counters for one Datahike EACL client.
raw docstring

create-connclj

(create-conn)
(create-conn extra-schema)
(create-conn extra-schema config)

A datahike connection carrying EACL's schema. See eacl.datahike.schema/create-conn for the config options.

A datahike connection carrying EACL's schema. See
`eacl.datahike.schema/create-conn` for the config options.
raw docstring

cursor->tokenclj


dbclj

(db snapshot)

Returns the immutable Datahike DB held by an EACL-created snapshot.

Returns the immutable Datahike DB held by an EACL-created snapshot.
raw docstring

default-internal-cursor->spiceclj


default-spice-cursor->internalclj


expire-cache!clj

(expire-cache! client)
(expire-cache! client source-lifecycle)

Rotates one Datahike client's local cache/token lifecycle.

Rotates one Datahike client's local cache/token lifecycle.
raw docstring

export-authenticated-cache-snapshotclj

(export-authenticated-cache-snapshot client bounds)

Exports count/byte-bounded authenticated cache bytes using the primary keyring.

Exports count/byte-bounded authenticated cache bytes using the primary keyring.
raw docstring

export-cache-snapshotclj

(export-cache-snapshot client bounds)

Exports reusable authorization-cache entries as a bounded immutable value.

Hosts persisting external bytes must authenticate and encoded-size-bound the envelope before deserialization. The value contains neither a Datahike DB nor process-local cache identity.

Exports reusable authorization-cache entries as a bounded immutable value.

Hosts persisting external bytes must authenticate and encoded-size-bound the
envelope before deserialization. The value contains neither a Datahike DB nor
process-local cache identity.
raw docstring

make-clientclj

(make-client conn config-opts)

Builds an EACL v8 client over explicitly initialized Relationship storage 8. Storage and permission upgrades must be invoked before construction.

Builds an EACL v8 client over explicitly initialized Relationship storage 8.
Storage and permission upgrades must be invoked before construction.
raw docstring

prepare-cache-coherence!clj

Initializes missing native cache generations on a quiesced connection.

This does not detect or repair earlier unsupported unstamped mutations and is not a cache flush.

Initializes missing native cache generations on a quiesced connection.

This does not detect or repair earlier unsupported unstamped mutations and
is not a cache flush.
raw docstring

refresh-metrics!clj

(refresh-metrics! client)
(refresh-metrics! client opts)

Drops derived cache artifacts; optionally recomputes them immediately.

Drops derived cache artifacts; optionally recomputes them immediately.
raw docstring

restore-authenticated-cache-snapshot!clj

(restore-authenticated-cache-snapshot! client token bounds)

Restores optional authenticated cache bytes. Unavailable keys are cache misses.

Restores optional authenticated cache bytes. Unavailable keys are cache misses.
raw docstring

restore-cache-snapshot!clj

(restore-cache-snapshot! client snapshot bounds)

Atomically restores one trusted, authenticated cache snapshot value.

Atomically restores one trusted, authenticated cache snapshot value.
raw docstring

token->cursorclj


typed-transaction-errorclj

(typed-transaction-error error)

The exception carrying EACL's typed ex-data inside error's cause chain, or nil. Datahike's writer executes transactions off the calling thread and reports a failing transaction function as a wrapper exception (an ex-info around the future's ExecutionException around the original throw), so a commit-time :eacl/relationship-conflict has to be recovered from the chain to keep the public write contract.

The exception carrying EACL's typed `ex-data` inside `error`'s cause chain,
or nil. Datahike's writer executes transactions off the calling thread and
reports a failing transaction function as a wrapper exception (an ex-info
around the future's `ExecutionException` around the original throw), so a
commit-time `:eacl/relationship-conflict` has to be recovered from the
chain to keep the public write contract.
raw 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