The SQLITE_STMT Virtual Table
(stmt.html)
2. Usage
The SQLITE_STMT virtual table is a read-only table that can be directly
queried to access information about all prepared statements on the
current database connection. For example:
SELECT * FROM sqlite_stmt;
A statement such as the above can be run ...
|
C API: SQL Trace Event Codes
(c3ref/c_trace.html)
SQLITE_TRACE_STMT, SQLITE_TRACE_PROFILE, SQLITE_TRACE_ROW, SQLITE_TRACE_CLOSE
... The SQLITE_TRACE_PROFILE callback is invoked when the statement finishes.
SQLITE_TRACE_ROW
An SQLITE_TRACE_ROW callback is invoked whenever a prepared
statement generates a single row of result.
The P argument is a pointer to the prepared statement and the
X argument is ...
|
C API: Evaluate An SQL Statement
(c3ref/step.html)
After a prepared statement has been prepared using any of
sqlite3_prepare_v2(), sqlite3_prepare_v3(), sqlite3_prepare16_v2(),
or sqlite3_prepare16_v3() or one of the legacy
interfaces sqlite3_prepare() or sqlite3_prepare16(), this function
must be called one or more times to evaluate the statement.
The details of ...
|
C API: Retrieving Statement SQL
(c3ref/expanded_sql.html)
sqlite3_sql(), sqlite3_expanded_sql(), sqlite3_normalized_sql()
The sqlite3_sql(P) interface returns a pointer to a copy of the UTF-8
SQL text used to create prepared statement P if P was
created by sqlite3_prepare_v2(), sqlite3_prepare_v3(),
sqlite3_prepare16_v2(), or sqlite3_prepare16_v3().
The sqlite3_expanded_sql(P) interface returns a pointer to ...
|
Why SQLite Uses Bytecode
(whybytecode.html)
1. Introduction
... It first
translates the input SQL text into a "prepared statement". Then it "executes"
the prepared statement to generate a result.
A prepared statement is an object that represents the steps needed
to accomplish the input SQL. Or, to think ...
|
C API: Compile-Time Authorization Callbacks
(c3ref/set_authorizer.html)
sqlite3_set_authorizer()
... Applications must always be prepared to encounter a NULL pointer in any
of the third through the sixth parameters of the authorization callback.
If the action code is SQLITE_READ
and the callback returns SQLITE_IGNORE then the
prepared statement statement is ...
|
C API: Closing A Database Connection
(c3ref/close.html)
sqlite3_close(), sqlite3_close_v2()
... Ideally, applications should finalize all
prepared statements, close all BLOB handles, and
finish all sqlite3_backup objects associated
with the sqlite3 object prior to attempting to close the object.
If the database connection is associated with unfinalized prepared
statements, BLOB handlers ...
|
C API: Number Of Columns In A Result Set
(c3ref/column_count.html)
sqlite3_column_count()
Return the number of columns in the result set returned by the
prepared statement. If this routine returns 0, that means the
prepared statement returns no data (for example an UPDATE).
However, just because this routine returns a positive number ...
|
C API: Source Of Data In A Query Result
(c3ref/column_database_name.html)
sqlite3_column_database_name(), sqlite3_column_database_name16(), sqlite3_column_table_name(), sqlite3_column_table_name16(), sqlite3_column_origin_name(), sqlite3_column_origin_name16()
... The returned string is valid until the prepared statement is destroyed
using sqlite3_finalize() or until the statement is automatically
reprepared by the first call to sqlite3_step() for a particular run
or until the same information is requested
again in a ...
|
C API: Number of columns in a result set
(c3ref/data_count.html)
sqlite3_data_count()
The sqlite3_data_count(P) interface returns the number of columns in the
current row of the result set of prepared statement P.
If prepared statement P does not have results ready to return
(via calls to the sqlite3_column() family of
interfaces ...
|
Page generated by FTS5 in about 115.85 ms.