Name

sqlite3_db_status() — Get the status of a database connection resource [EXP]

Definition

int sqlite3_db_status( sqlite3* db, int option, 
                  int* current, int* highest, int reset);
db

A database connection.

option

The resource option to retrieve.

current

The current value of the given option will be passed back through this reference.

highest

The highest seen value of the given option will be passed back through this reference.

reset

If this value is nonzero, the highest seen value will be reset to the current value.

Returns

An SQLite result code.

Description

This function can be used to query information about the internal resource usage of a database connection. The function will pass back both the current and the highest seen values. This can be used to track resource consumption.

For more information on the currently supported status options, see http://www.sqlite.org/c3ref/db_status.html.

Get Using SQLite now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.