Searched refs:aDb (Results 1 - 25 of 32) sorted by relevance

12

/external/chromium_org/third_party/sqlite/src/src/
H A Dattach.c100 char *z = db->aDb[i].zName;
108 /* Allocate the new entry in the db->aDb[] array and initialise the schema
111 if( db->aDb==db->aDbStatic ){
112 aNew = sqlite3DbMallocRaw(db, sizeof(db->aDb[0])*3 );
114 memcpy(aNew, db->aDb, sizeof(db->aDb[0])*2);
116 aNew = sqlite3DbRealloc(db, db->aDb, sizeof(db->aDb[0])*(db->nDb+1) );
119 db->aDb = aNew;
120 aNew = &db->aDb[d
[all...]
H A Dbtmutex.c192 p = db->aDb[i].pBt;
201 p = db->aDb[i].pBt;
228 p = db->aDb[i].pBt;
241 ** db->aDb[iDb].pSchema structure. The mutexes required for schema
245 ** (2) if iDb!=1, then the mutex on db->aDb[iDb].pBt.
257 p = db->aDb[iDb].pBt;
280 Btree *p = db->aDb[i].pBt;
H A Dprepare.c111 pIndex = sqlite3FindIndex(db, argv[0], db->aDb[iDb].zName);
174 assert( db->aDb[iDb].pSchema );
176 assert( iDb==1 || sqlite3BtreeHoldsMutex(db->aDb[iDb].pBt) );
203 pTab = sqlite3FindTable(db, zMasterName, db->aDb[iDb].zName);
210 pDb = &db->aDb[iDb];
319 db->aDb[iDb].zName, zMasterName);
454 Btree *pBt = db->aDb[iDb].pBt; /* Btree database to read cookie from */
474 if( cookie!=db->aDb[iDb].pSchema->schema_cookie ){
488 ** which database file in db->aDb[] the schema refers to.
502 ** -1000000 as the incorrect index into db->aDb[] i
[all...]
H A Dpragma.c110 if( db->aDb[1].pBt!=0 ){
111 if( !db->autoCommit || sqlite3BtreeIsInReadTrans(db->aDb[1].pBt) ){
116 sqlite3BtreeClose(db->aDb[1].pBt);
117 db->aDb[1].pBt = 0;
321 ** index of the database this pragma is being applied to in db.aDb[]. */
324 pDb = &db->aDb[iDb];
441 sqlite3BtreeSecureDelete(db->aDb[ii].pBt, b);
504 assert(pDb==&db->aDb[0]);
506 pPager = sqlite3BtreePager(db->aDb[ii].pBt);
565 if( db->aDb[i
[all...]
H A Dtrigger.c48 Schema * const pTmpSchema = pParse->db->aDb[1].pSchema;
131 && pTab->pSchema==db->aDb[1].pSchema ){
170 if( sqlite3HashFind(&(db->aDb[iDb].pSchema->trigHash),
206 const char *zDb = db->aDb[iTabDb].zName;
207 const char *zDbTrig = isTemp ? db->aDb[1].zName : zDb;
233 pTrigger->pSchema = db->aDb[iDb].pSchema;
300 db->aDb[iDb].zName, SCHEMA_TABLE(iDb), zName,
311 Hash *pHash = &db->aDb[iDb].pSchema->trigHash;
497 if( zDb && sqlite3StrICmp(db->aDb[j].zName, zDb) ) continue;
499 pTrigger = sqlite3HashFind(&(db->aDb[
[all...]
H A Dbuild.c162 db->aDb[iDb].pSchema->iGeneration);
279 if( zDatabase!=0 && sqlite3StrICmp(zDatabase, db->aDb[j].zName) ) continue;
281 p = sqlite3HashFind(&db->aDb[j].pSchema->tblHash, zName, nName);
344 Schema *pSchema = db->aDb[j].pSchema;
346 if( zDb && sqlite3StrICmp(zDb, db->aDb[j].zName) ) continue;
377 pHash = &db->aDb[iDb].pSchema->idxHash;
415 Db *pDb = &db->aDb[iDb];
425 pDb = &db->aDb[1];
436 Db *pDb = &db->aDb[i];
452 struct Db *pDb = &db->aDb[
[all...]
H A Dstatus.c145 Btree *pBt = db->aDb[i].pBt;
169 Schema *pSchema = db->aDb[i].pSchema;
H A Dmain.c712 Btree *pBt = db->aDb[j].pBt;
725 struct Db *pDb = &db->aDb[j];
742 assert( db->aDb==db->aDbStatic );
791 sqlite3DbFree(db, db->aDb[1].pSchema);
812 if( db->aDb[i].pBt ){
813 if( sqlite3BtreeIsInTrans(db->aDb[i].pBt) ){
816 sqlite3BtreeRollback(db->aDb[i].pBt);
817 db->aDb[i].inTrans = 0;
1393 int iDb = SQLITE_MAX_ATTACHED; /* sqlite3.aDb[] index of db to checkpoint */
1464 rc = sqlite3BtreeCheckpoint(db->aDb[
[all...]
H A Dvacuum.c129 pMain = db->aDb[0].pBt;
154 pDb = &db->aDb[db->nDb-1];
158 pTemp = db->aDb[db->nDb-1].pBt;
338 /* This both clears the schemas and reduces the size of the db->aDb[]
H A Danalyze.c60 pDb = &db->aDb[iDb];
155 db->aDb[iDb].zName ) ){
384 Schema *pSchema = db->aDb[iDb].pSchema; /* Schema of database iDb */
481 zDb = db->aDb[iDb].zName;
608 assert( db->aDb[iDb].pBt!=0 );
612 for(i=sqliteHashFirst(&db->aDb[iDb].pSchema->idxHash);i;i=sqliteHashNext(i)){
621 sInfo.zDatabase = db->aDb[iDb].zName;
H A Dvdbeaux.c952 ** Declare to the Vdbe that the BTree object at db->aDb[i] is used.
962 if( i!=1 && sqlite3BtreeSharable(p->db->aDb[i].pBt) ){
993 Db *aDb; local
997 aDb = db->aDb;
1000 if( i!=1 && (mask & p->lockMask)!=0 && ALWAYS(aDb[i].pBt!=0) ){
1001 sqlite3BtreeEnter(aDb[i].pBt);
1015 Db *aDb; local
1019 aDb = db->aDb;
[all...]
H A Dalter.c301 const Schema *pTempSchema = pParse->db->aDb[1].pSchema; /* Temp db schema */
420 zDb = db->aDb[iDb].zName;
641 zDb = db->aDb[iDb].zName;
812 pNew->pSchema = db->aDb[iDb].pSchema;
H A Dauth.c108 char *zDb = db->aDb[iDb].zName; /* Name of attached database */
H A Dvdbe.c2654 rc = sqlite3BtreeSavepoint(db->aDb[ii].pBt, p1, iSavepoint);
2802 pBt = db->aDb[pOp->p1].pBt;
2856 assert( db->aDb[iDb].pBt!=0 );
2859 sqlite3BtreeGetMeta(db->aDb[iDb].pBt, iCookie, (u32 *)&iMeta);
2879 pDb = &db->aDb[pOp->p1];
2929 pBt = db->aDb[pOp->p1].pBt;
2932 iGen = db->aDb[pOp->p1].pSchema->iGeneration;
2952 if( db->aDb[pOp->p1].pSchema->schema_cookie!=iMeta ){
3033 pDb = &db->aDb[iDb];
3929 zDb = db->aDb[p
[all...]
H A Dvtab.c287 addModuleArgument(db, pTable, sqlite3DbStrDup(db, db->aDb[iDb].zName));
299 pTable->azModuleArg[0], pParse->db->aDb[iDb].zName);
362 db->aDb[iDb].zName, SCHEMA_TABLE(iDb),
605 pTab = sqlite3FindTable(db, zTab, db->aDb[iDb].zName);
705 pTab = sqlite3FindTable(db, zTab, db->aDb[iDb].zName);
H A DsqliteInt.h657 ** in the sqlite.aDb[] array. aDb[0] is the main database file and
658 ** aDb[1] is the database file used to hold temporary tables. Additional
673 ** the Schema for the TEMP databaes (sqlite3.aDb[1]) which is free-standing.
704 #define DbHasProperty(D,I,P) (((D)->aDb[I].pSchema->flags&(P))==(P))
705 #define DbHasAnyProperty(D,I,P) (((D)->aDb[I].pSchema->flags&(P))!=0)
706 #define DbSetProperty(D,I,P) (D)->aDb[I].pSchema->flags|=(P)
707 #define DbClearProperty(D,I,P) (D)->aDb[I].pSchema->flags&=~(P)
803 Db *aDb; /* All backends */ member in struct:sqlite3
911 #define ENC(db) ((db)->aDb[
[all...]
H A Dinsert.c23 int iDb, /* The database index in sqlite3.aDb[] */
238 pDb = &db->aDb[p->iDb];
285 Db *pDb = &db->aDb[p->iDb];
496 pDb = &db->aDb[iDb];
H A Drecover.c398 if( ascii_strcasecmp(db->aDb[i].zName, zName)==0 ){
399 pBt = db->aDb[i].pBt;
2115 pRecover->zDb = sqlite3_strdup(db->aDb[0].zName);
H A Ddelete.c289 zDb = db->aDb[iDb].zName;
H A Dtest3.c547 pBt = db->aDb[iDb].pBt;
H A Dtest_stat.c370 Btree *pBt = pTab->db->aDb[0].pBt;
H A Dvdbeapi.c320 Btree *pBt = db->aDb[i].pBt;
324 rc = db->xWalCallback(db->pWalArg, db, db->aDb[i].zName, nEntry);
/external/chromium_org/third_party/sqlite/amalgamation/
H A Dsqlite3.c9002 ** in the sqlite.aDb[] array. aDb[0] is the main database file and
9003 ** aDb[1] is the database file used to hold temporary tables. Additional
9018 ** the Schema for the TEMP databaes (sqlite3.aDb[1]) which is free-standing.
9049 #define DbHasProperty(D,I,P) (((D)->aDb[I].pSchema->flags&(P))==(P))
9050 #define DbHasAnyProperty(D,I,P) (((D)->aDb[I].pSchema->flags&(P))!=0)
9051 #define DbSetProperty(D,I,P) (D)->aDb[I].pSchema->flags|=(P)
9052 #define DbClearProperty(D,I,P) (D)->aDb[I].pSchema->flags&=~(P)
9148 Db *aDb; /* All backends */ member in struct:sqlite3
9256 #define ENC(db) ((db)->aDb[
58118 Db *aDb; local
58140 Db *aDb; local
[all...]
/external/sqlite/dist/orig/
H A Dsqlite3.c10315 ** in the sqlite.aDb[] array. aDb[0] is the main database file and
10316 ** aDb[1] is the database file used to hold temporary tables. Additional
10330 ** the Schema for the TEMP databaes (sqlite3.aDb[1]) which is free-standing.
10361 #define DbHasProperty(D,I,P) (((D)->aDb[I].pSchema->schemaFlags&(P))==(P))
10362 #define DbHasAnyProperty(D,I,P) (((D)->aDb[I].pSchema->schemaFlags&(P))!=0)
10363 #define DbSetProperty(D,I,P) (D)->aDb[I].pSchema->schemaFlags|=(P)
10364 #define DbClearProperty(D,I,P) (D)->aDb[I].pSchema->schemaFlags&=~(P)
10439 Db *aDb; /* All backends */ member in struct:sqlite3
10547 #define ENC(db) ((db)->aDb[
63376 Db *aDb; local
63397 Db *aDb; local
[all...]
/external/sqlite/dist/
H A Dsqlite3.c10315 ** in the sqlite.aDb[] array. aDb[0] is the main database file and
10316 ** aDb[1] is the database file used to hold temporary tables. Additional
10330 ** the Schema for the TEMP databaes (sqlite3.aDb[1]) which is free-standing.
10361 #define DbHasProperty(D,I,P) (((D)->aDb[I].pSchema->schemaFlags&(P))==(P))
10362 #define DbHasAnyProperty(D,I,P) (((D)->aDb[I].pSchema->schemaFlags&(P))!=0)
10363 #define DbSetProperty(D,I,P) (D)->aDb[I].pSchema->schemaFlags|=(P)
10364 #define DbClearProperty(D,I,P) (D)->aDb[I].pSchema->schemaFlags&=~(P)
10439 Db *aDb; /* All backends */ member in struct:sqlite3
10547 #define ENC(db) ((db)->aDb[
63396 Db *aDb; local
63417 Db *aDb; local
[all...]

Completed in 599 milliseconds

12