snapshot_recover method

int snapshot_recover(
  1. PtrSqlite3 db,
  2. String zDb
)
inherited

Implementation

int snapshot_recover(PtrSqlite3 db, String zDb) {
  final zDbMeta = zDb._metaNativeUtf8();
  final ptrZDb = zDbMeta.ptr;
  if (_h_sqlite3_snapshot_recover == null) {
    throw dbsql.DatabaseException(
        'API sqlite3_snapshot_recover is not available, You need to enable it during library build.');
  }
  try {
    return _h_sqlite3_snapshot_recover!(db, ptrZDb);
  } finally {
    pkgffi.malloc.free(ptrZDb);
  }
}