*** DRAFT ***
SQLite C Interface
Status Parameters for database connections
#define SQLITE_DBSTATUS_LOOKASIDE_USED 0
#define SQLITE_DBSTATUS_CACHE_USED 1
#define SQLITE_DBSTATUS_SCHEMA_USED 2
#define SQLITE_DBSTATUS_STMT_USED 3
#define SQLITE_DBSTATUS_MAX 3 /* Largest defined DBSTATUS */
These constants are the available integer "verbs" that can be passed as
the second argument to the sqlite3_db_status() interface.
New verbs may be added in future releases of SQLite. Existing verbs
might be discontinued. Applications should check the return code from
sqlite3_db_status() to make sure that the call worked.
The sqlite3_db_status() interface will return a non-zero error code
if a discontinued or unsupported verb is invoked.
- SQLITE_DBSTATUS_LOOKASIDE_USED
- This parameter returns the number of lookaside memory slots currently
checked out.
- SQLITE_DBSTATUS_CACHE_USED
- This parameter returns the approximate number of of bytes of heap
memory used by all pager caches associated with the database connection.
The highwater mark associated with SQLITE_DBSTATUS_CACHE_USED is always 0.
- SQLITE_DBSTATUS_SCHEMA_USED
- This parameter returns the approximate number of of bytes of heap
memory used to store the schema for all databases associated
with the connection - main, temp, and any ATTACH-ed databases.
The full amount of memory used by the schemas is reported, even if the
schema memory is shared with other database connections due to
shared cache mode being enabled.
The highwater mark associated with SQLITE_DBSTATUS_SCHEMA_USED is always 0.
- SQLITE_DBSTATUS_STMT_USED
- This parameter returns the approximate number of of bytes of heap
and lookaside memory used by all prepared statements associated with
the database connection.
The highwater mark associated with SQLITE_DBSTATUS_STMT_USED is always 0.
See also lists of
Objects,
Constants, and
Functions.
*** DRAFT ***