API reference › @evolu/sqlite-wasm › c-api › sqlite3_backup_finish

function sqlite3_backup_finish(
  deps: SqliteWasmDep,
): (p: SqliteBackupPtr) => SqliteResultCode;

Defined in: packages/sqlite-wasm/src/CApi.ts:1598

Releases the backup, rolling back an unfinished copy, and returns the result of the most recent sqlite3_backup_step if that failed, SQLITE_BUSY and SQLITE_LOCKED included, otherwise SQLITE_OK. Every backup sqlite3_backup_init returned needs it, also after an error.

Wasm type i(i). Signature ["sqlite3_backup_finish", "int", "sqlite3_backup*"] from SQLite's table.

See https://sqlite.org/c3ref/backup_finish.html.