Optionaloptions: DatabaseOptionsOptionalengines: string[]ProtectedbackendReadonlyfileProtectedoptionsReadonlyreadyresolves when the database is opened, rejects with the open error
true once the database is opened and until it is closed
Optionaloptions: BatchOptionsfalse when the engine in use cannot load extensions (loadExtension would reject)
streams rows in chunks, resolves with the number of rows
Optionalcomplete: (error: Error, count: number) => voidOptionaloptions: SqliteRequestOptionsOptionalparams: SqliteParamsrun several statements separated by ;, without parameters
Blocking variants: they wait for the database thread on the calling thread, saving the event loop round trip for small statements in a loop, and block it for the whole statement. Node-API binding only (NativeScript >= 9.1).
Optionalparams: SqliteParamsOptionalparams: SqliteParamsOptionaloptions: SqliteRequestOptionsOptionalparams: SqliteParamsOptionaloptions: SqliteRequestOptionsOptionalparams: SqliteParamsOptionaloptions: SqliteRequestOptionsversion of the SQLite library in use
Optionalparams: SqliteParamsOptionaloptions: SqliteRequestOptionsProtectedhandleLoads a SQLite extension into this connection; needs an engine that allows it (see canLoadExtensions). entryPoint
defaults to the one SQLite derives from the file name (libfoo.so -> sqlite3_foo_init).
OptionalentryPoint: stringOptionalparams: SqliteParamsOptionaloptions: SqliteRequestOptionsOptionalparams: SqliteParamsOptionaloptions: SqliteRequestOptionsOptionalparams: SqliteParamsOptionaloptions: SqliteRequestOptionsOptionalparams: SqliteParamsOptionaloptions: SqliteRequestOptionsRuns action in a transaction: COMMIT when it resolves, ROLLBACK when it throws or cancel() was called. Other calls made
on this database meanwhile join it (use tx to be explicit); requests of other parts of the app wait for the end.
Optionaloptions: TransactionOptionsProtectedtxthe transaction a call belongs to, 0 for none
The query methods, shared by a database and by a transaction.