PreparedStatement
TypeScriptSource files: TypeScript
A reusable SQL statement bound to the connection that prepared it. Each execution resets the statement and its bindings before applying new values. Finalize it before closing the connection.
Properties
execute
execute: ExecutePreparedStatement
Defined in: types.ts:165
Execute on the calling thread. Throws if the statement is finalized, its connection is closed, or the managed connection is busy.
executeAsync
executeAsync: ExecutePreparedStatementAsync
Defined in: types.ts:167
Queue execution on a background thread and resolve with the query result.
isFinalized
readonly isFinalized: boolean
Defined in: types.ts:163
Whether finalize() has released the native statement.
Methods
finalize()
finalize(): void
Defined in: types.ts:169
Release the native statement. Calling this more than once is safe.
Returns
void