Lines Matching refs:eMode
8232 int eMode, /* SQLITE_CHECKPOINT_* value */
46848 int eMode, /* One of PASSIVE, FULL and RESTART */
53970 SQLITE_PRIVATE int sqlite3PagerLockingMode(Pager *pPager, int eMode){
53971 assert( eMode==PAGER_LOCKINGMODE_QUERY
53972 || eMode==PAGER_LOCKINGMODE_NORMAL
53973 || eMode==PAGER_LOCKINGMODE_EXCLUSIVE );
53977 if( eMode>=0 && !pPager->tempFile && !sqlite3WalHeapMemory(pPager->pWal) ){
53978 pPager->exclusiveMode = (u8)eMode;
54003 SQLITE_PRIVATE int sqlite3PagerSetJournalMode(Pager *pPager, int eMode){
54014 assert( eMode==PAGER_JOURNALMODE_DELETE
54015 || eMode==PAGER_JOURNALMODE_TRUNCATE
54016 || eMode==PAGER_JOURNALMODE_PERSIST
54017 || eMode==PAGER_JOURNALMODE_OFF
54018 || eMode==PAGER_JOURNALMODE_WAL
54019 || eMode==PAGER_JOURNALMODE_MEMORY );
54025 assert( pPager->tempFile==0 || eMode!=PAGER_JOURNALMODE_WAL );
54032 if( eMode!=PAGER_JOURNALMODE_MEMORY && eMode!=PAGER_JOURNALMODE_OFF ){
54033 eMode = eOld;
54037 if( eMode!=eOld ){
54041 pPager->journalMode = (u8)eMode;
54055 if( !pPager->exclusiveMode && (eOld & 5)==1 && (eMode & 1)==0 ){
54089 }else if( eMode==PAGER_JOURNALMODE_OFF ){
54163 int eMode, /* Type of checkpoint */
54169 rc = sqlite3WalCheckpoint(pPager->pWal, db, eMode,
54170 (eMode==SQLITE_CHECKPOINT_PASSIVE ? 0 : pPager->xBusyHandler),
56127 int eMode, /* One of PASSIVE, FULL or RESTART */
56158 assert( eMode!=SQLITE_CHECKPOINT_PASSIVE || xBusy==0 );
56269 if( rc==SQLITE_OK && eMode!=SQLITE_CHECKPOINT_PASSIVE ){
56273 }else if( eMode>=SQLITE_CHECKPOINT_RESTART ){
56279 if( eMode==SQLITE_CHECKPOINT_TRUNCATE ){
57684 int eMode, /* PASSIVE, FULL, RESTART, or TRUNCATE */
57695 int eMode2 = eMode; /* Mode to pass to walCheckpoint() */
57703 assert( eMode!=SQLITE_CHECKPOINT_PASSIVE || xBusy==0 );
57733 if( eMode!=SQLITE_CHECKPOINT_PASSIVE ){
57783 return (rc==SQLITE_OK && eMode!=eMode2 ? SQLITE_BUSY : rc);
62554 u8 eMode = BTALLOC_ANY; /* Mode parameter for allocateBtreePage() */
62570 eMode = BTALLOC_LE;
62575 rc = allocateBtreePage(pBt, &pFreePg, &iFreePg, iNear, eMode);
64602 u8 eMode /* BTALLOC_EXACT, BTALLOC_LT, or BTALLOC_ANY */
64613 assert( eMode==BTALLOC_ANY || (nearby>0 && IfNotOmitAV(pBt->autoVacuum)) );
64634 if( eMode==BTALLOC_EXACT ){
64645 }else if( eMode==BTALLOC_LE ){
64710 && (nearby==iTrunk || (iTrunk<nearby && eMode==BTALLOC_LE))
64779 if( eMode==BTALLOC_LE ){
64810 || (iPage==nearby || (iPage<nearby && eMode==BTALLOC_LE))
68574 SQLITE_PRIVATE int sqlite3BtreeCheckpoint(Btree *p, int eMode, int *pnLog, int *pnCkpt){
68582 rc = sqlite3PagerCheckpoint(pBt->pPager, p->db, eMode, pnLog, pnCkpt);
87939 static int vdbePmaReaderIncrInit(PmaReader *pReadr, int eMode);
87962 int eMode /* One of the INCRINIT_XXX constants */
87969 assert( SQLITE_MAX_WORKER_THREADS>0 || eMode==INCRINIT_NORMAL );
87976 if( SQLITE_MAX_WORKER_THREADS>0 && eMode==INCRINIT_ROOT ){
88030 static int vdbePmaReaderIncrMergeInit(PmaReader *pReadr, int eMode){
88037 assert( SQLITE_MAX_WORKER_THREADS>0 || eMode==INCRINIT_NORMAL );
88039 rc = vdbeMergeEngineInit(pTask, pIncr->pMerger, eMode);
88080 assert( eMode==INCRINIT_ROOT || eMode==INCRINIT_TASK );
88085 if( rc==SQLITE_OK && (SQLITE_MAX_WORKER_THREADS==0 || eMode!=INCRINIT_TASK) ){
88118 static int vdbePmaReaderIncrInit(PmaReader *pReadr, int eMode){
88123 assert( pIncr->bUseThread==0 || eMode==INCRINIT_TASK );
88130 rc = vdbePmaReaderIncrMergeInit(pReadr, eMode);
105016 u8 eMode, /* ONEPASS_OFF, _SINGLE, or _MULTI. See above */
105034 if( eMode==ONEPASS_OFF ){
105112 if( eMode!=ONEPASS_OFF ){
105118 if( eMode==ONEPASS_MULTI ) p5 |= OPFLAG_SAVEPOSITION;
113222 SQLITE_PRIVATE const char *sqlite3JournalModename(int eMode){
113235 assert( eMode>=0 && eMode<=ArraySize(azModeName) );
113237 if( eMode==ArraySize(azModeName) ) return 0;
113238 return azModeName[eMode];
113542 int eMode = getLockingMode(zRight);
113544 if( pId2->n==0 && eMode==PAGER_LOCKINGMODE_QUERY ){
113549 eMode = db->dfltLockMode;
113565 sqlite3PagerLockingMode(pPager, eMode);
113567 db->dfltLockMode = (u8)eMode;
113570 eMode = sqlite3PagerLockingMode(pPager, eMode);
113573 assert( eMode==PAGER_LOCKINGMODE_NORMAL
113574 || eMode==PAGER_LOCKINGMODE_EXCLUSIVE );
113575 if( eMode==PAGER_LOCKINGMODE_EXCLUSIVE ){
113588 int eMode; /* One of the PAGER_JOURNALMODE_XXX symbols */
113594 eMode = PAGER_JOURNALMODE_QUERY;
113598 for(eMode=0; (zMode = sqlite3JournalModename(eMode))!=0; eMode++){
113604 eMode = PAGER_JOURNALMODE_QUERY;
113607 if( eMode==PAGER_JOURNALMODE_QUERY && pId2->n==0 ){
113615 sqlite3VdbeAddOp3(v, OP_JournalMode, ii, 1, eMode);
114782 int eMode = SQLITE_CHECKPOINT_PASSIVE;
114785 eMode = SQLITE_CHECKPOINT_FULL;
114787 eMode = SQLITE_CHECKPOINT_RESTART;
114789 eMode = SQLITE_CHECKPOINT_TRUNCATE;
114793 sqlite3VdbeAddOp3(v, OP_Checkpoint, iBt, eMode, 1);
141990 int eMode, /* SQLITE_CHECKPOINT_* value */
142012 if( eMode<SQLITE_CHECKPOINT_PASSIVE || eMode>SQLITE_CHECKPOINT_TRUNCATE ){
142027 rc = sqlite3Checkpoint(db, iDb, eMode, pnLog, pnCkpt);
142075 SQLITE_PRIVATE int sqlite3Checkpoint(sqlite3 *db, int iDb, int eMode, int *pnLog, int *pnCkpt){
142086 rc = sqlite3BtreeCheckpoint(db->aDb[i].pBt, eMode, pnLog, pnCkpt);