Liking cljdoc? Tell your friends :D

com.blockether.vis.internal.persistance.codec

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.
raw docstring

->dateclj

(->date v)
source

->epoch-msclj

(->epoch-ms v)
source

->idclj

(->id v)
source

->jsonclj

(->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.
sourceraw docstring

->kwclj

(->kw v)

Keyword/string -> TEXT, stripping the leading colon. Nil -> nil.

Keyword/string -> TEXT, stripping the leading colon. Nil -> nil.
sourceraw docstring

->kw-backclj

(->kw-back v)
source

->refclj

(->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.
sourceraw docstring

->uuidclj

(->uuid v)
source

<-jsonclj

(<-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.
sourceraw docstring

dsclj

(ds db-info)
source

new-idclj

(new-id)
source

new-uuidclj

(new-uuid)
source

normalize-statusclj

(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.
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