snapshot_recover method
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);
}
}