MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / sqlite3_recover_step

Function sqlite3_recover_step

modules/dasSQLITE/sqlite/shell.c:16287–16294  ·  view source on GitHub ↗

** Do a unit of work towards the recovery job. Return SQLITE_OK if ** no error has occurred but database recovery is not finished, SQLITE_DONE ** if database recovery has been successfully completed, or an SQLite ** error code if an error has occurred. */

Source from the content-addressed store, hash-verified

16285** error code if an error has occurred.
16286*/
16287int sqlite3_recover_step(sqlite3_recover *p){
16288 if( p==0 ) return SQLITE_NOMEM;
16289 if( p->errCode==SQLITE_OK ) recoverStep(p);
16290 if( p->eState==RECOVER_STATE_DONE && p->errCode==SQLITE_OK ){
16291 return SQLITE_DONE;
16292 }
16293 return p->errCode;
16294}
16295
16296/*
16297** Do the configured recovery operation. Return SQLITE_OK if successful, or

Callers 1

sqlite3_recover_runFunction · 0.85

Calls 1

recoverStepFunction · 0.85

Tested by

no test coverage detected