If true
, allows binding named parameters without the prefix character (e.g., foo
instead of :foo
).
interface
sqlite.DatabaseSyncOptions
interface DatabaseSyncOptions
- allowBareNamedParameters?: boolean
- allowExtension?: boolean
If
true
, theloadExtension
SQL function and theloadExtension()
method are enabled. You can callenableLoadExtension(false)
later to disable this feature. - allowUnknownNamedParameters?: boolean
If
true
, unknown named parameters are ignored when binding. Iffalse
, an exception is thrown for unknown named parameters. - enableDoubleQuotedStringLiterals?: boolean
If
true
, SQLite will accept double-quoted string literals. This is not recommended but can be enabled for compatibility with legacy database schemas. - enableForeignKeyConstraints?: boolean
If
true
, foreign key constraints are enabled. This is recommended but can be disabled for compatibility with legacy database schemas. The enforcement of foreign key constraints can be enabled and disabled after opening the database usingPRAGMA foreign_keys
. - open?: boolean
If
true
, the database is opened by the constructor. When this value isfalse
, the database must be opened via theopen()
method. - readBigInts?: boolean
If
true
, integer fields are read as JavaScriptBigInt
values. Iffalse
, integer fields are read as JavaScript numbers. - readOnly?: boolean
If
true
, the database is opened in read-only mode. If the database does not exist, opening it will fail. - timeout?: number
The busy timeout in milliseconds. This is the maximum amount of time that SQLite will wait for a database lock to be released before returning an error.