Metakit / @doeixd/metakit/sql
SqlParam
type · packages/metakit/src/sqlText.ts:46
type SqlParam<D extends SqlDialect = SqlDialect> = D extends 'sqlite'
? string | number
: string | number | boolean | ReadonlyArray<string | number | boolean | null>A value a statement binds, as the driver of D takes it: on SQLite a number
or text (a boolean is bound as 1 or 0, a list as JSON text read through
json(?)), which node:sqlite's run and better-sqlite3 take; on Postgres
also a boolean or a list of scalars and nulls, which PGlite and pg bind
as an array. Null is never bound: it is written NULL or IS NULL.