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.
(cache-content-revision client)Returns this client's process-local reusable-cache content revision.
Returns this client's process-local reusable-cache content revision.
(cache-stats client)Returns private completed-cache counters for one Datahike EACL client.
Returns private completed-cache counters for one Datahike EACL client.
(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.
(db snapshot)Returns the immutable Datahike DB held by an EACL-created snapshot.
Returns the immutable Datahike DB held by an EACL-created snapshot.
(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.
(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.
(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.
(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.
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.
(refresh-metrics! client)(refresh-metrics! client opts)Drops derived cache artifacts; optionally recomputes them immediately.
Drops derived cache artifacts; optionally recomputes them immediately.
(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.
(restore-cache-snapshot! client snapshot bounds)Atomically restores one trusted, authenticated cache snapshot value.
Atomically restores one trusted, authenticated cache snapshot value.
(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |