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?
optional
args:unknown
[]
Arguments to pass to the SQL statement.
onAfterExecute()?
optional
onAfterExecute: (result
:ExecuteResult
) =>void
A callback function that will be called after executing the statement.
Parameters
Parameter | Type |
---|---|
result | ExecuteResult |
Returns
void
onBeforeExecute()?
optional
onBeforeExecute: (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.