Type Alias: ExecuteStatement
ExecuteStatement: {
args:unknown[];onAfterExecute: (result:ExecuteResult) =>void;onBeforeExecute: (args:unknown[]) =>void;sql:SqlNode; }
An object that represents a SQL statement to be executed.
Type declaration
args?
optionalargs:unknown[]
Arguments to pass to the SQL statement.
onAfterExecute()?
optionalonAfterExecute: (result:ExecuteResult) =>void
A callback function that will be called after executing the statement.
Parameters
| Parameter | Type |
|---|---|
result | ExecuteResult |
Returns
void
onBeforeExecute()?
optionalonBeforeExecute: (args:unknown[]) =>void
A callback function that will be called before executing the statement.
Parameters
| Parameter | Type |
|---|---|
args | unknown[] |
Returns
void
sql
sql:
SqlNode
The SQL statement to execute.