| SQLITE_TRACE_STMT(3) | Library Functions Manual | SQLITE_TRACE_STMT(3) |
SQLITE_TRACE_STMT,
SQLITE_TRACE_PROFILE,
SQLITE_TRACE_ROW,
SQLITE_TRACE_CLOSE — SQL
trace event codes
#include
<sqlite3.h>
#define SQLITE_TRACE_STMT
#define SQLITE_TRACE_PROFILE
#define SQLITE_TRACE_ROW
#define SQLITE_TRACE_CLOSE
These constants identify classes of events that can be monitored
using the
sqlite3_trace_v2()
tracing logic. The M argument to sqlite3_trace_v2(D,M,X,P) is an OR-ed
combination of one or more of the following constants. The first argument to
the trace callback is one of the following constants.
New tracing constants may be added in future releases.
A trace callback has four arguments:
xCallback(T,C,P,X). The T argument is one of the integer type codes above.
The C argument is a copy of the context pointer passed in as the fourth
argument to
sqlite3_trace_v2().
The P and X arguments are pointers whose meanings depend on T.
sqlite3_trace()
interface by using the X argument when X begins with "--" and
invoking sqlite3_expanded_sql(P) otherwise.sqlite3_profile()
callback. The P argument is a pointer to the prepared statement and the X
argument points to a 64-bit integer which is approximately the number of
nanoseconds that the prepared statement took to run. The
SQLITE_TRACE_PROFILE callback is invoked when the statement finishes.These declarations were extracted from the interface documentation at line 3326.
#define SQLITE_TRACE_STMT 0x01 #define SQLITE_TRACE_PROFILE 0x02 #define SQLITE_TRACE_ROW 0x04 #define SQLITE_TRACE_CLOSE 0x08
sqlite3(3), sqlite3_stmt(3), sqlite3_trace(3), sqlite3_trace_v2(3)
| January 24, 2024 | NetBSD 11.0 |