Lines Matching refs:pAuxDb
19464 *pAuxDb; /* Currently active database connection */ member
23216 struct AuxDb *pAuxDb = i<0 ? p->pAuxDb : &p->aAuxDb[i]; in session_close_all() local
23217 for(j=0; j<pAuxDb->nSession; j++){ in session_close_all()
23218 session_close(&pAuxDb->aSession[j]); in session_close_all()
23220 pAuxDb->nSession = 0; in session_close_all()
23300 const char *zDbFilename = p->pAuxDb->zDbFilename; in readHexDb()
23407 const char *zDbFilename = p->pAuxDb->zDbFilename; in open_db()
26333 if( p->aAuxDb[i].db==0 && p->pAuxDb!=&p->aAuxDb[i] ){ in do_meta_command()
26340 if( p->pAuxDb == &p->aAuxDb[i] ){ in do_meta_command()
26348 if( p->pAuxDb != &p->aAuxDb[i] && i>=0 && i<ArraySize(p->aAuxDb) ){ in do_meta_command()
26349 p->pAuxDb->db = p->db; in do_meta_command()
26350 p->pAuxDb = &p->aAuxDb[i]; in do_meta_command()
26351 globalDb = p->db = p->pAuxDb->db; in do_meta_command()
26352 p->pAuxDb->db = 0; in do_meta_command()
26359 }else if( p->pAuxDb == &p->aAuxDb[i] ){ in do_meta_command()
27655 p->pAuxDb->zDbFilename = 0; in do_meta_command()
27656 sqlite3_free(p->pAuxDb->zFreeOnClose); in do_meta_command()
27657 p->pAuxDb->zFreeOnClose = 0; in do_meta_command()
27682 p->pAuxDb->zDbFilename = zNewFilename; in do_meta_command()
27688 p->pAuxDb->zFreeOnClose = zNewFilename; in do_meta_command()
27693 p->pAuxDb->zDbFilename = 0; in do_meta_command()
28256 struct AuxDb *pAuxDb = p->pAuxDb; in do_meta_command() local
28257 OpenSession *pSession = &pAuxDb->aSession[0]; in do_meta_command()
28265 for(iSes=0; iSes<pAuxDb->nSession; iSes++){ in do_meta_command()
28266 if( cli_strcmp(pAuxDb->aSession[iSes].zName, azArg[1])==0 ) break; in do_meta_command()
28268 if( iSes<pAuxDb->nSession ){ in do_meta_command()
28269 pSession = &pAuxDb->aSession[iSes]; in do_meta_command()
28273 pSession = &pAuxDb->aSession[0]; in do_meta_command()
28337 if( pAuxDb->nSession ){ in do_meta_command()
28339 pAuxDb->aSession[iSes] = pAuxDb->aSession[--pAuxDb->nSession]; in do_meta_command()
28350 if( pAuxDb->nSession ){ in do_meta_command()
28362 if( pAuxDb->nSession ){ in do_meta_command()
28385 if( pAuxDb->nSession ){ in do_meta_command()
28397 if( pAuxDb->nSession ){ in do_meta_command()
28407 for(i=0; i<pAuxDb->nSession; i++){ in do_meta_command()
28408 oputf("%d %s\n", i, pAuxDb->aSession[i].zName); in do_meta_command()
28421 for(i=0; i<pAuxDb->nSession; i++){ in do_meta_command()
28422 if( cli_strcmp(pAuxDb->aSession[i].zName,zName)==0 ){ in do_meta_command()
28427 if( pAuxDb->nSession>=ArraySize(pAuxDb->aSession) ){ in do_meta_command()
28428 eputf("Maximum of %d sessions\n", ArraySize(pAuxDb->aSession)); in do_meta_command()
28431 pSession = &pAuxDb->aSession[pAuxDb->nSession]; in do_meta_command()
28440 pAuxDb->nSession++; in do_meta_command()
28843 p->pAuxDb->zDbFilename ? p->pAuxDb->zDbFilename : ""); in do_meta_command()
30246 data->pAuxDb = &data->aAuxDb[0]; in main_init()
30432 SQLITE_SHELL_DBNAME_PROC(&data.pAuxDb->zDbFilename);
30626 if( data.pAuxDb->zDbFilename==0 ){
30628 data.pAuxDb->zDbFilename = ":memory:";
30645 if( access(data.pAuxDb->zDbFilename, 0)==0 ){