method
sqlite.SQLTagStore.run
Executes the given SQL query, which is expected to not return any rows (e.g., INSERT, UPDATE, DELETE).
This function is intended to be used as a template literal tag, not to be called directly.
Template literal elements containing the SQL query.
Parameter values to be bound to placeholders in the template string.
An object containing information about the execution, including changes and lastInsertRowid.
Referenced types
interface StatementResultingChanges
- changes: number | bigint
The number of rows modified, inserted, or deleted by the most recently completed
INSERT,UPDATE, orDELETEstatement. This field is either a number or aBigIntdepending 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
BigIntdepending on the prepared statement's configuration. This property is the result ofsqlite3_last_insert_rowid().