Function: encodeForSql()
Function: encodeForSql()
Section titled “Function: encodeForSql()”encodeForSql(
kind,value):unknown
Defined in: core/src/schema/codec.ts:15
Encode a user-space value for storage in SQL. Applied to every INSERT / UPDATE bound parameter on the server engine.
json/file→ JSON-serialize (SQLite / D1 cannot bind objects; file manifests share the json branch by design).boolean→ 0 / 1 integer (SQLite has no native BOOLEAN; Postgres accepts the coercion.)- Other kinds pass through — the underlying driver handles primitives directly.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”unknown