Liking cljdoc? Tell your friends :D

fractal-engine.session-db

Canonical durable store for sessions.

SQLite stores hot operational rows, refs, and transaction batches. BlobStore stores payloads: message text, code, requests/responses, finals, snapshots, vars, and raw errors. Datahike is a rebuildable Datalog index derived from SQLite transaction batches plus blob identity facts.

The local filesystem is only the physical backend for SQLite, Datahike index files, and content-addressed blob bytes. Per-session filesystem homes are not part of the domain model.

Canonical durable store for sessions.

SQLite stores hot operational rows, refs, and transaction batches. BlobStore
stores payloads: message text, code, requests/responses, finals, snapshots,
vars, and raw errors. Datahike is a rebuildable Datalog index derived from
SQLite transaction batches plus blob identity facts.

The local filesystem is only the physical backend for SQLite, Datahike index
files, and content-addressed blob bytes. Per-session filesystem homes are not
part of the domain model.
raw docstring

advance-current-head!clj

(advance-current-head! root head expected-head)
source

alias-entityclj

(alias-entity alias session-id)
source

attached-fromclj

(attached-from root source-session-id)
source

call-entityclj

(call-entity session-id call)
source

call-recordsclj

(call-records root session-id)
source

current-head-idclj

(current-head-id root session-id)
source

derivation-entityclj

(derivation-entity target-session-id source kind created-at)
source

direct-session-statusclj

(direct-session-status root session-id)
source

eval-entityclj

(eval-entity root session-id row)
source

eval-recordsclj

(eval-records root session-id)
source

event-entityclj

(event-entity session-id ev payload-ref)
source

event-recordclj

(event-record root session-id ev payload-ref)
source

event-session-idclj

(event-session-id fallback event)
source

event-viewclj

(event-view root session-id)

Compact audit/history view from SQLite rows. This is not a replay source for current state; current reads dereference head-state roots.

Compact audit/history view from SQLite rows. This is not a replay source
for current state; current reads dereference head-state roots.
sourceraw docstring

handle-head-idclj

(handle-head-id handle opts)
source

handle-session-idclj

(handle-session-id handle)
source

head-entityclj

(head-entity head)
source

high-water-countersclj

(high-water-counters root session-id)

Session-local high-water counters from canonical facts. Restoring from an older head must continue above abandoned historical ids, not from that head's local counter value.

Session-local high-water counters from canonical facts. Restoring from an older
head must continue above abandoned historical ids, not from that head's local
counter value.
sourceraw docstring

history-viewclj

(history-view root session-id)

Audit/history view. Events are the complete event log; heads/invocations are read directly from SQLite rows so abandoned branches remain visible.

Audit/history view. Events are the complete event log; heads/invocations are
read directly from SQLite rows so abandoned branches remain visible.
sourceraw docstring

incoming-invocationsclj

(incoming-invocations root session-id)
source

invocation-entityclj

(invocation-entity session-id inv)
source

list-alias-recordsclj

(list-alias-records root)
source

list-derivation-recordsclj

(list-derivation-records root)
source

list-head-recordsclj

(list-head-records root)
source

list-invocation-recordsclj

(list-invocation-records root)
source

list-session-recordsclj

(list-session-records root)
source

load-eventsclj

(load-events root session-id)
source

locatorclj

(locator root session-id)
(locator root session-id head-id)
source

locator-session-idclj

(locator-session-id x)
source

locator-store-rootclj

(locator-store-root x)
(locator-store-root x default-root)
source

locator?clj

(locator? x)
source

message-entityclj

(message-entity session-id message payload-ref)
source

message-recordsclj

(message-records root session-id)
(message-records root session-id {:keys [include-content?]})
source

metadata-event-typesclj

source

outgoing-invocationsclj

(outgoing-invocations root session-id)
source

put-payload-fact!clj

(put-payload-fact! root value fact-fn opts)
source

read-aliasclj

(read-alias root alias)
source

read-headclj

(read-head root head-id)
(read-head root session-id head-id)
source

read-head-stateclj

(read-head-state root head-id)
(read-head-state root session-id head-id)
source

read-refclj

(read-ref root session-id)
source

read-sessionclj

(read-session root session-id)
source

record-event!clj

(record-event! root fallback-session-id ev)
source

register-session!clj

(register-session! root session)
source

resolve-handleclj

(resolve-handle root handle opts)
source

resolve-session-idclj

(resolve-session-id root token)
source

session-current-head-entityclj

(session-current-head-entity session-id head-id)
source

session-entityclj

(session-entity session)
source

snapshot-entityclj

(snapshot-entity session-id snapshot)
source

snapshot-recordsclj

(snapshot-records root session-id)
source

store-rootclj

(store-root session)
source

store-versionclj

source

transact-facts!clj

(transact-facts! root blob-refs facts)
source

transact-rows-and-facts!clj

(transact-rows-and-facts! root rows blob-refs facts)
source

turn-entityclj

(turn-entity session-id turn)
source

turn-recordsclj

(turn-records root session-id)
source

viewclj

(view root session-id)
(view root session-id opts)

Current/head view for a session. If a head is selected, dereference that immutable head state. Otherwise dereference session/current-head. The event fold remains available through history-view/event-view.

Current/head view for a session. If a head is selected, dereference that
immutable head state. Otherwise dereference session/current-head. The event
fold remains available through history-view/event-view.
sourceraw docstring

write-alias!clj

(write-alias! root alias session-id)
(write-alias! root alias session-id _extra)
source

write-head!clj

(write-head! root head)
source

write-invocation!clj

(write-invocation! root invocation)
source

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