import { PreparedStatement } from "https://deno.land/x/sqlite3@0.4.4/mod.ts";
Represents a prepared statement. Should only be created by Database.prepare()
.
Constructors
new
PreparedStatement(db: Database, handle: sqlite3_stmt)Methods
Binds all parameters to the prepared statement. This is a shortcut for calling bind()
for each parameter.
bindAllNamed(values: Record<string, BindValue>): void
column<T extends ColumnValue = ColumnValue>(index: number): T
Return value of a column at given index in current row.
columnType(index: number): SqliteType
Return the data type of the column at given index in current row.
finalize(): void
Finalize and run the prepared statement.
This also frees up any resources related to the statement. And clears all references to the buffers as they're no longer needed, allowing V8 to GC them.