Skip to content

API Statement

Michael Anderson edited this page Dec 13, 2017 · 2 revisions

A Statement takes an SQL expression as a string and makes it executable or queryable against a database table.

Syntax

connection.createStatement( sql : string )

Arguments

sql

Type: string

The SQL expression used to form the statement.

Methods

query

Syntax

connection.createStatement( ...args: Array<any> ) => Array<any>
Arguments
args

Type: Array<any>

The SQL string in the dialect of the underlying driver, with the exception that the parameter token is always a question mark ?.

Returns

Type: Statement

A statement object which will be used for further database actions. This statement is reusable.

Clone this wiki locally