1.Dd January 24, 2024 2.Dt SQLITE3_DB_STATUS 3 3.Os 4.Sh NAME 5.Nm sqlite3_db_status 6.Nd database connection status 7.Sh SYNOPSIS 8.In sqlite3.h 9.Ft int 10.Fo sqlite3_db_status 11.Fa "sqlite3*" 12.Fa "int op" 13.Fa "int *pCur" 14.Fa "int *pHiwtr" 15.Fa "int resetFlg" 16.Fc 17.Sh DESCRIPTION 18This interface is used to retrieve runtime status information about 19a single database connection. 20The first argument is the database connection object to be interrogated. 21The second argument is an integer constant, taken from the set of SQLITE_DBSTATUS options, 22that determines the parameter to interrogate. 23The set of SQLITE_DBSTATUS options is likely 24to grow in future releases of SQLite. 25.Pp 26The current value of the requested parameter is written into *pCur 27and the highest instantaneous value is written into *pHiwtr. 28If the resetFlg is true, then the highest instantaneous value is reset 29back down to the current value. 30.Pp 31The sqlite3_db_status() routine returns SQLITE_OK on success and a 32non-zero error code on failure. 33.Pp 34.Sh IMPLEMENTATION NOTES 35These declarations were extracted from the 36interface documentation at line 8627. 37.Bd -literal 38SQLITE_API int sqlite3_db_status(sqlite3*, int op, int *pCur, int *pHiwtr, int resetFlg); 39.Ed 40.Sh SEE ALSO 41.Xr sqlite3 3 , 42.Xr sqlite3_status 3 , 43.Xr sqlite3_stmt_status 3 , 44.Xr SQLITE_DBSTATUS_LOOKASIDE_USED 3 45