API reference › @evolu/common › Sqlite › SqliteBoolean
type SqliteBoolean = 0 | 1;
Defined in: packages/common/src/Sqlite.ts:639
SQLite represents boolean values using 0 (false) and 1 (true) instead of
a dedicated boolean type.
See: https://www.sqlite.org/quirks.html#no_separate_boolean_datatype
Tips
- Use sqliteTrue and sqliteFalse constants for better readability.
- Use booleanToSqliteBoolean and sqliteBooleanToBoolean for converting between JavaScript booleans and SQLite boolean values.