API Reference / @evolu/common / Sqlite / SqliteBoolean

Variable: SqliteBoolean

const SqliteBoolean: TransformType<Type<"Boolean", boolean, boolean, BooleanError, boolean, BooleanError>, UnionType<[LiteralType<0>, LiteralType<1>]>, never>;

Defined in: packages/common/src/Sqlite.ts:423

SQLite represents boolean values using 0 (false) and 1 (true) instead of a dedicated boolean type. This transform Type ensures that values conform to SQLite's boolean representation.

See: https://www.sqlite.org/quirks.html#no_separate_boolean_datatype

Was this page helpful?