A helper for casting types not supported by SQLite. SQLite doesn't support Date nor Boolean types, so Evolu emulates them with SqliteBoolean and SqliteDate.
const allTodosNotDeleted = evolu.createQuery((db) => db .selectFrom("todo") .selectAll() // isDeleted is SqliteBoolean .where("isDeleted", "is not", Evolu.cast(true)), ); Copy
const allTodosNotDeleted = evolu.createQuery((db) => db .selectFrom("todo") .selectAll() // isDeleted is SqliteBoolean .where("isDeleted", "is not", Evolu.cast(true)), );
A helper for casting types not supported by SQLite. SQLite doesn't support Date nor Boolean types, so Evolu emulates them with SqliteBoolean and SqliteDate.