Name

sqlite3_status() — Get the status of an SQLite library resource [EXP]

Definition

int sqlite3_status( int option, int *current, int *highest, int reset );
option

The status option to retrieve.

current

A reference to an integer. The current value will be passed back using this reference.

highest

A reference to an integer. The highest seen value will be passed back using this reference.

reset

If this flag is nonzero, the high-water mark will be reset to the current value after the current high-water mark value is returned.

Returns

An SQLite result code.

Description

This function retrieves status information from the SQLite library. When an application requests a specific status option, both the current and the highest seen value are passed back. The application can optionally reset the highest seen value to the current value.

The available options include several different memory monitors, as well as information on the page cache. For a full list of the currently supported options, see http://www.sqlite.org/c3ref/c_status_malloc_size.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.