/external/chromium_org/third_party/sqlite/src/src/ |
H A D | attach.c | 100 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 D | btmutex.c | 192 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 D | prepare.c | 111 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 D | pragma.c | 110 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 D | trigger.c | 48 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 D | build.c | 165 db->aDb[iDb].pSchema->iGeneration); 282 if( zDatabase!=0 && sqlite3StrICmp(zDatabase, db->aDb[j].zName) ) continue; 284 p = sqlite3HashFind(&db->aDb[j].pSchema->tblHash, zName, nName); 347 Schema *pSchema = db->aDb[j].pSchema; 349 if( zDb && sqlite3StrICmp(zDb, db->aDb[j].zName) ) continue; 380 pHash = &db->aDb[iDb].pSchema->idxHash; 418 Db *pDb = &db->aDb[iDb]; 428 pDb = &db->aDb[1]; 439 Db *pDb = &db->aDb[i]; 455 struct Db *pDb = &db->aDb[ [all...] |
H A D | status.c | 145 Btree *pBt = db->aDb[i].pBt; 169 Schema *pSchema = db->aDb[i].pSchema;
|
H A D | main.c | 712 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 D | vacuum.c | 129 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 D | analyze.c | 60 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 D | vdbeaux.c | 952 ** 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 D | alter.c | 301 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 D | auth.c | 108 char *zDb = db->aDb[iDb].zName; /* Name of attached database */
|
H A D | vdbe.c | 2654 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 D | vtab.c | 287 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 D | sqliteInt.h | 657 ** 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 D | insert.c | 23 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 D | recover.c | 398 if( ascii_strcasecmp(db->aDb[i].zName, zName)==0 ){ 399 pBt = db->aDb[i].pBt; 2093 pRecover->zDb = sqlite3_strdup(db->aDb[0].zName);
|
H A D | delete.c | 289 zDb = db->aDb[iDb].zName;
|
H A D | test3.c | 547 pBt = db->aDb[iDb].pBt;
|
H A D | test_stat.c | 370 Btree *pBt = pTab->db->aDb[0].pBt;
|
H A D | vdbeapi.c | 320 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 D | sqlite3.c | 9017 ** in the sqlite.aDb[] array. aDb[0] is the main database file and 9018 ** aDb[1] is the database file used to hold temporary tables. Additional 9033 ** the Schema for the TEMP databaes (sqlite3.aDb[1]) which is free-standing. 9064 #define DbHasProperty(D,I,P) (((D)->aDb[I].pSchema->flags&(P))==(P)) 9065 #define DbHasAnyProperty(D,I,P) (((D)->aDb[I].pSchema->flags&(P))!=0) 9066 #define DbSetProperty(D,I,P) (D)->aDb[I].pSchema->flags|=(P) 9067 #define DbClearProperty(D,I,P) (D)->aDb[I].pSchema->flags&=~(P) 9163 Db *aDb; /* All backends */ member in struct:sqlite3 9271 #define ENC(db) ((db)->aDb[ 58297 Db *aDb; local 58319 Db *aDb; local [all...] |
/external/sqlite/dist/orig/ |
H A D | sqlite3.c | 9593 ** in the sqlite.aDb[] array. aDb[0] is the main database file and 9594 ** aDb[1] is the database file used to hold temporary tables. Additional 9609 ** the Schema for the TEMP databaes (sqlite3.aDb[1]) which is free-standing. 9640 #define DbHasProperty(D,I,P) (((D)->aDb[I].pSchema->flags&(P))==(P)) 9641 #define DbHasAnyProperty(D,I,P) (((D)->aDb[I].pSchema->flags&(P))!=0) 9642 #define DbSetProperty(D,I,P) (D)->aDb[I].pSchema->flags|=(P) 9643 #define DbClearProperty(D,I,P) (D)->aDb[I].pSchema->flags&=~(P) 9718 Db *aDb; /* All backends */ member in struct:sqlite3 9824 #define ENC(db) ((db)->aDb[ 60513 Db *aDb; local 60535 Db *aDb; local [all...] |
/external/sqlite/dist/ |
H A D | sqlite3.c | 9593 ** in the sqlite.aDb[] array. aDb[0] is the main database file and 9594 ** aDb[1] is the database file used to hold temporary tables. Additional 9609 ** the Schema for the TEMP databaes (sqlite3.aDb[1]) which is free-standing. 9640 #define DbHasProperty(D,I,P) (((D)->aDb[I].pSchema->flags&(P))==(P)) 9641 #define DbHasAnyProperty(D,I,P) (((D)->aDb[I].pSchema->flags&(P))!=0) 9642 #define DbSetProperty(D,I,P) (D)->aDb[I].pSchema->flags|=(P) 9643 #define DbClearProperty(D,I,P) (D)->aDb[I].pSchema->flags&=~(P) 9718 Db *aDb; /* All backends */ member in struct:sqlite3 9824 #define ENC(db) ((db)->aDb[ 60541 Db *aDb; local 60563 Db *aDb; local [all...] |