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)

->epoch-msclj

(->epoch-ms v)

->idclj

(->id v)

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

->kwclj

(->kw v)

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

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

->kw-backclj

(->kw-back v)

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

->uuidclj

(->uuid v)

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

dsclj

(ds db-info)

new-idclj

(new-id)

new-uuidclj

(new-uuid)

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