mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-24 03:34:18 +01:00
803 B
803 B
Limbo Documentation
SQLite C API
WAL manipulation
libsql_wal_frame_count
Get the number of frames in the WAL.
Synopsis:
int libsql_wal_frame_count(sqlite3 *db, uint32_t *p_frame_count);
Description:
The libsql_wal_frame_count function returns the number of frames in the WAL
in the p_frame_count parameter.
Return Values:
SQLITE_OKif the number of frames in the WAL file is successfully returned.SQLITE_MISUSEif thedbis NULL.- SQLITE_ERROR if an error occurs while getting the number of frames in the WAL file.
Safety Requirements:
- The
dbparameter must be a valid pointer to asqlite3database connection. - The
p_frame_countmust be a valid pointer to au32that will store the - number of frames in the WAL file.