Options for Database
interface
sqlite.DatabaseOptions
interface DatabaseOptions
- readonly?: booleanOpen the database as read-only (no write operations, no create). Equivalent to constants.SQLITE_OPEN_READONLY 
- safeIntegers?: booleanWhen set to true, integers are returned asbiginttypes.When set to false, integers are returned asnumbertypes and truncated to 52 bits.
- strict?: booleanWhen set to falseorundefined:- Queries missing bound parameters will NOT throw an error
- Bound named parameters in JavaScript need to exactly match the SQL query.
 const db = new Database(":memory:", { strict: false }); db.run("INSERT INTO foo (name) VALUES ($name)", { $name: "foo" });When set to true:- Queries missing bound parameters will throw an error
- Bound named parameters in JavaScript no longer need to be $,:, or@. The SQL query will remain prefixed.