wal_checkpoint_v2 method

int wal_checkpoint_v2(
  1. PtrSqlite3 db,
  2. String? zDb,
  3. int eMode,
  4. PtrInt32 pnLog,
  5. PtrInt32 pnCkpt,
)
inherited

Implementation

int wal_checkpoint_v2(PtrSqlite3 db, String? zDb, int eMode, PtrInt32 pnLog, PtrInt32 pnCkpt) {
  if (libVersionNumber < 3007006) {
    throw dbsql.DatabaseException('API sqlite3_wal_checkpoint_v2 is not available before 3.7.6');
  }
  final zDbMeta = zDb?._metaNativeUtf8();
  final ptrZDb = zDbMeta?.ptr ?? ffi.nullptr;
  try {
    return _h_sqlite3_wal_checkpoint_v2!(db, ptrZDb, eMode, pnLog, pnCkpt);
  } finally {
    pkgffi.malloc.free(ptrZDb);
  }
}