Skip to content

Function: decodeFromSql()

decodeFromSql(kind, value): unknown

Defined in: core/src/schema/codec.ts:43

Reverse of encodeForSql. Applied per-column on every ChangeOp emitted by the sync handler’s pull, so the client sees the same user-space types it originally submitted regardless of the storage backend.

file columns get their own failure-tolerant branch: a bad manifest (empty string from ALTER TABLE … DEFAULT ‘’, or malformed raw driver write) becomes a BrokenFileRef sentinel rather than throwing, because a single unparsable cell would otherwise crash the entire pull batch. Client-side helpers surface the sentinel as status: "missing".

ColumnKind

unknown

unknown