ReadonlyexpandedThe statement's SQL, with each parameter replaced by the value most recently bound to it.
ReadonlysourceThe statement's SQL, as passed to prepare().
Runs the statement and returns all of its rows.
Named parameters (an object) and/or anonymous parameters
The rows, each an object keyed by column name (or an array, if returnArrays is set)
Describes the columns the statement returns.
One object per column: its name in the result (name), and, for a column read directly from a table, the original column name, database, table and declared type
Runs the statement and returns its first row.
Named parameters (an object) and/or anonymous parameters
The first row, as an object keyed by column name (or an array, if returnArrays is set), or undefined if there are no rows
Runs the statement and returns an iterator over its rows, which are read as the iterator is advanced. Running the statement again invalidates the iterator.
Named parameters (an object) and/or anonymous parameters
An iterator over the rows
Runs the statement, and returns the number of rows it changed and the ID of the last row inserted.
Named parameters (an object) and/or anonymous parameters
The rows changed and the last inserted row ID. These are BigInts if readBigInts is set.
Sets whether named parameters may be given without their prefix character ({ id: 1 }
for :id).
Whether to allow bare names
Sets whether named parameters the statement doesn't use are ignored, rather than throwing.
Whether to ignore unknown names
Sets whether INTEGER values are read as BigInts, including run()'s changes and
lastInsertRowid.
Whether to read BigInts
Sets whether rows are returned as arrays of values instead of objects.
Whether to return arrays
A prepared statement, as Node's
StatementSync. Made byDatabaseSync.prepare(); it can't be constructed directly. Parameters are bound the same way forrun(),get(),all()anditerate(): if the first argument is an object (other than a typed array), its properties are bound to named parameters (:name,@nameor$name), and any remaining arguments are bound, in order, tonull,undefinedUint8Array)null, numbers (orBigInts, seesetReadBigInts()), strings andUint8Arrays. An INTEGER too large to be a JS number throws, unlessreadBigIntsis set.