Skip to main content

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

ParameterType
resultExecuteResult

Returns

void

onBeforeExecute()?

optional onBeforeExecute: (args: unknown[]) => void

A callback function that will be called before executing the statement.

Parameters

ParameterType
argsunknown[]

Returns

void

sql

sql: SqlNode

The SQL statement to execute.

Defined in

packages/verse-core/src/db/driver.ts:18