Lines Matching defs:eMode
7069 ** eMode parameter:
7137 int eMode, /* SQLITE_CHECKPOINT_* value */
37527 int eMode, /* One of PASSIVE, FULL and RESTART */
43996 ** Get/set the locking-mode for this pager. Parameter eMode must be one
44005 SQLITE_PRIVATE int sqlite3PagerLockingMode(Pager *pPager, int eMode){
44006 assert( eMode==PAGER_LOCKINGMODE_QUERY
44007 || eMode==PAGER_LOCKINGMODE_NORMAL
44008 || eMode==PAGER_LOCKINGMODE_EXCLUSIVE );
44012 if( eMode>=0 && !pPager->tempFile && !sqlite3WalHeapMemory(pPager->pWal) ){
44013 pPager->exclusiveMode = (u8)eMode;
44019 ** Set the journal-mode for this pager. Parameter eMode must be one of:
44038 SQLITE_PRIVATE int sqlite3PagerSetJournalMode(Pager *pPager, int eMode){
44048 /* The eMode parameter is always valid */
44049 assert( eMode==PAGER_JOURNALMODE_DELETE
44050 || eMode==PAGER_JOURNALMODE_TRUNCATE
44051 || eMode==PAGER_JOURNALMODE_PERSIST
44052 || eMode==PAGER_JOURNALMODE_OFF
44053 || eMode==PAGER_JOURNALMODE_WAL
44054 || eMode==PAGER_JOURNALMODE_MEMORY );
44060 assert( pPager->tempFile==0 || eMode!=PAGER_JOURNALMODE_WAL );
44067 if( eMode!=PAGER_JOURNALMODE_MEMORY && eMode!=PAGER_JOURNALMODE_OFF ){
44068 eMode = eOld;
44072 if( eMode!=eOld ){
44076 pPager->journalMode = (u8)eMode;
44090 if( !pPager->exclusiveMode && (eOld & 5)==1 && (eMode & 1)==0 ){
44180 ** Parameter eMode is one of SQLITE_CHECKPOINT_PASSIVE, FULL or RESTART.
44182 SQLITE_PRIVATE int sqlite3PagerCheckpoint(Pager *pPager, int eMode, int *pnLog, int *pnCkpt){
44185 rc = sqlite3WalCheckpoint(pPager->pWal, eMode,
46012 int eMode, /* One of PASSIVE, FULL or RESTART */
46042 if( eMode!=SQLITE_CHECKPOINT_PASSIVE ) xBusy = xBusyCall;
46135 if( rc==SQLITE_OK && eMode!=SQLITE_CHECKPOINT_PASSIVE ){
46139 }else if( eMode==SQLITE_CHECKPOINT_RESTART ){
47153 int eMode, /* PASSIVE, FULL or RESTART */
47164 int eMode2 = eMode; /* Mode to pass to walCheckpoint() */
47189 if( eMode!=SQLITE_CHECKPOINT_PASSIVE ){
47234 return (rc==SQLITE_OK && eMode!=eMode2 ? SQLITE_BUSY : rc);
56244 ** Parameter eMode is one of SQLITE_CHECKPOINT_PASSIVE, FULL or RESTART.
56246 SQLITE_PRIVATE int sqlite3BtreeCheckpoint(Btree *p, int eMode, int *pnLog, int *pnCkpt){
56254 rc = sqlite3PagerCheckpoint(pBt->pPager, eMode, pnLog, pnCkpt);
90224 ** Parameter eMode must be one of the PAGER_JOURNALMODE_XXX constants
90228 SQLITE_PRIVATE const char *sqlite3JournalModename(int eMode){
90241 assert( eMode>=0 && eMode<=ArraySize(azModeName) );
90243 if( eMode==ArraySize(azModeName) ) return 0;
90244 return azModeName[eMode];
90445 int eMode = getLockingMode(zRight);
90447 if( pId2->n==0 && eMode==PAGER_LOCKINGMODE_QUERY ){
90452 eMode = db->dfltLockMode;
90468 sqlite3PagerLockingMode(pPager, eMode);
90470 db->dfltLockMode = (u8)eMode;
90473 eMode = sqlite3PagerLockingMode(pPager, eMode);
90476 assert(eMode==PAGER_LOCKINGMODE_NORMAL||eMode==PAGER_LOCKINGMODE_EXCLUSIVE);
90477 if( eMode==PAGER_LOCKINGMODE_EXCLUSIVE ){
90492 int eMode; /* One of the PAGER_JOURNALMODE_XXX symbols */
90507 eMode = PAGER_JOURNALMODE_QUERY;
90511 for(eMode=0; (zMode = sqlite3JournalModename(eMode))!=0; eMode++){
90517 eMode = PAGER_JOURNALMODE_QUERY;
90520 if( eMode==PAGER_JOURNALMODE_QUERY && pId2->n==0 ){
90528 sqlite3VdbeAddOp3(v, OP_JournalMode, ii, 1, eMode);
91357 int eMode = SQLITE_CHECKPOINT_PASSIVE;
91360 eMode = SQLITE_CHECKPOINT_FULL;
91362 eMode = SQLITE_CHECKPOINT_RESTART;
91372 sqlite3VdbeAddOp3(v, OP_Checkpoint, iBt, eMode, 1);
111544 int eMode, /* SQLITE_CHECKPOINT_* value */
111561 if( eMode<SQLITE_CHECKPOINT_PASSIVE || eMode>SQLITE_CHECKPOINT_RESTART ){
111573 rc = sqlite3Checkpoint(db, iDb, eMode, pnLog, pnCkpt);
111610 ** Parameter eMode is one of SQLITE_CHECKPOINT_PASSIVE, FULL or RESTART.
111612 SQLITE_PRIVATE int sqlite3Checkpoint(sqlite3 *db, int iDb, int eMode, int *pnLog, int *pnCkpt){
111623 rc = sqlite3BtreeCheckpoint(db->aDb[i].pBt, eMode, pnLog, pnCkpt);