コンテンツにスキップ

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.

ColumnKind

unknown

unknown