This method is used to retrieve information about the columns returned by the prepared statement.
method
sqlite.StatementSync.columns
An array of objects. Each object corresponds to a column in the prepared statement, and contains the following properties:
Referenced types
interface StatementColumnMetadata
- column: null | string
The unaliased name of the column in the origin table, or
null
if the column is the result of an expression or subquery. This property is the result ofsqlite3_column_origin_name()
. - database: null | string
The unaliased name of the origin database, or
null
if the column is the result of an expression or subquery. This property is the result ofsqlite3_column_database_name()
. - name: string
The name assigned to the column in the result set of a
SELECT
statement. This property is the result ofsqlite3_column_name()
. - table: null | string
The unaliased name of the origin table, or
null
if the column is the result of an expression or subquery. This property is the result ofsqlite3_column_table_name()
. - type: null | string
The declared data type of the column, or
null
if the column is the result of an expression or subquery. This property is the result ofsqlite3_column_decltype()
.