Column codecs every persistence backend shares: entity ids and references, keyword, timestamp and JSON TEXT columns, and turn status values. A leaf namespace, so the facade, the SQLite backend and the public API require it without a load cycle.
Column codecs every persistence backend shares: entity ids and references, keyword, timestamp and JSON TEXT columns, and turn status values. A leaf namespace, so the facade, the SQLite backend and the public API require it without a load cycle.
(->json m)Serialize a value to a JSON TEXT column. Nil in, nil out.
Serialize a value to a JSON TEXT column. Nil in, nil out.
(->kw v)Keyword/string -> TEXT, stripping the leading colon. Nil -> nil.
Keyword/string -> TEXT, stripping the leading colon. Nil -> nil.
(->ref v)Normalize an entity reference to a string ID for SQL. Accepts: UUID, string, or nil. Returns string or nil.
The ONLY way to extract a SQL-ready string from an entity reference -- pass the plain UUID or string directly.
Normalize an entity reference to a string ID for SQL. Accepts: UUID, string, or nil. Returns string or nil. The ONLY way to extract a SQL-ready string from an entity reference -- pass the plain UUID or string directly.
(<-json s)Parse a JSON TEXT column. STRINGS-ONLY: keys come back as VERBATIM STRINGS -
no :key-fn keyword re-keywordizing. Whatever needs an internal keyword
shape converts at ONE named adapter, never here.
Parse a JSON TEXT column. STRINGS-ONLY: keys come back as VERBATIM STRINGS - no `:key-fn keyword` re-keywordizing. Whatever needs an internal keyword shape converts at ONE named adapter, never here.
(normalize-status status)Map runtime status keywords to the schema CHECK constraint values. Allowed: running, done, error, interrupted.
Map runtime status keywords to the schema CHECK constraint values. Allowed: running, done, error, interrupted.
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 |