This method executes a prepared statement and returns an object summarizing the resulting changes. The prepared statement parameters are bound using the values in namedParameters
and anonymousParameters
.
method
sqlite.StatementSync.run
Zero or more values to bind to anonymous parameters.
This method executes a prepared statement and returns an object summarizing the resulting changes. The prepared statement parameters are bound using the values in namedParameters
and anonymousParameters
.
An optional object used to bind named parameters. The keys of this object are used to configure the mapping.
Zero or more values to bind to anonymous parameters.
Referenced types
interface StatementResultingChanges
- changes: number | bigint
The number of rows modified, inserted, or deleted by the most recently completed
INSERT
,UPDATE
, orDELETE
statement. This field is either a number or aBigInt
depending on the prepared statement's configuration. This property is the result ofsqlite3_changes64()
. - lastInsertRowid: number | bigint
The most recently inserted rowid. This field is either a number or a
BigInt
depending on the prepared statement's configuration. This property is the result ofsqlite3_last_insert_rowid()
.