/external/chromium_org/third_party/sqlite/src/tool/ |
H A D | speedtest8inst1.c | 136 const char *zDb = 0; local 154 zDb = argv[++ii]; 173 if( !zDb || !zScript || !zLog ) goto usage; 184 zDb, &db, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, "logging"
|
/external/chromium_org/third_party/sqlite/src/src/ |
H A D | alter.c | 399 char *zDb; /* Name of database iDb */ local 420 zDb = db->aDb[iDb].zName; 430 if( sqlite3FindTable(db, zName, zDb) || sqlite3FindIndex(db, zName, zDb) ){ 455 if( sqlite3AuthCheck(pParse, SQLITE_ALTER_TABLE, zDb, pTab->zName, 0) ){ 511 "WHERE %s;", zDb, SCHEMA_TABLE(iDb), zTabName, zName, zWhere); 535 zDb, SCHEMA_TABLE(iDb), zName, zName, zName, 546 if( sqlite3FindTable(db, "sqlite_sequence", zDb) ){ 549 zDb, zName, pTab->zName); 627 const char *zDb; /* Databas local [all...] |
H A D | auth.c | 94 ** table zTab in database zDb. This function assumes that an authorization 108 char *zDb = db->aDb[iDb].zName; /* Name of attached database */ local 111 rc = db->xAuth(db->pAuthArg, SQLITE_READ, zTab,zCol,zDb,pParse->zAuthContext); 114 sqlite3ErrorMsg(pParse, "access to %s.%s.%s is prohibited",zDb,zTab,zCol);
|
H A D | attach.c | 422 pFix->zDb = db->aDb[iDb].zName; 447 const char *zDb; local 451 zDb = pFix->zDb; 454 pItem->zDatabase = sqlite3DbStrDup(pFix->pParse->db, zDb); 455 }else if( sqlite3StrICmp(pItem->zDatabase,zDb)!=0 ){
|
H A D | trigger.c | 206 const char *zDb = db->aDb[iTabDb].zName; local 207 const char *zDbTrig = isTemp ? db->aDb[1].zName : zDb; 212 if( sqlite3AuthCheck(pParse, SQLITE_INSERT, SCHEMA_TABLE(iTabDb),0,zDb)){ 480 const char *zDb; local 491 zDb = pName->a[0].zDatabase; 494 assert( zDb!=0 || sqlite3BtreeHoldsAllMutexes(db) ); 497 if( zDb && sqlite3StrICmp(db->aDb[j].zName, zDb) ) continue; 506 sqlite3CodeVerifyNamedSchema(pParse, zDb); 544 const char *zDb local [all...] |
H A D | resolve.c | 118 ** The zDb variable is the name of the database (the "X"). This value may be 121 ** value can be NULL if zDb is also NULL. If zTable is NULL it 130 const char *zDb, /* Name of the database containing table, or NULL */ 179 if( zDb!=0 && sqlite3StrICmp(db->aDb[iDb].zName, zDb)!=0 ){ 230 if( zDb==0 && zTab!=0 && cnt==0 && pParse->pTriggerTab!=0 ){ 316 assert( zTab==0 && zDb==0 ); 353 if( zDb ){ 354 sqlite3ErrorMsg(pParse, "%s: %s.%s.%s", zErr, zDb, zTab, zCol); 492 const char *zDb; local 128 lookupName( Parse *pParse, const char *zDb, const char *zTab, const char *zCol, NameContext *pNC, Expr *pExpr ) argument [all...] |
H A D | recover.c | 489 /* Fetch the page number of zTable in zDb from sqlite_master in zDb, 492 static int getRootPage(sqlite3 *db, const char *zDb, const char *zTable, argument 505 zDb, zTable); 535 static int getEncoding(sqlite3 *db, const char *zDb, int* piEncoding){ argument 538 char *zSql = sqlite3_mprintf("PRAGMA %s.encoding", zDb); 1535 char *zDb; /* Database containing target table */ member in struct:Recover 1543 sqlite3_free(pRecover->zDb); 1620 rc = getRootPage(pRecover->db, pRecover->zDb, pRecover->zTable, 1627 rc = getEncoding(pRecover->db, pRecover->zDb, [all...] |
H A D | test1.c | 1548 const char *zDb; local 1565 zDb = Tcl_GetString(objv[2]); 1569 if( strlen(zDb)==0 ) zDb = 0; 1571 rc = sqlite3_table_column_metadata(db, zDb, zTbl, zCol, 2018 char *zDb; local 2027 zDb = Tcl_GetString(objv[1]); 2034 if( !Tcl_GetCommandInfo(interp, zDb, &cmdInfo) ){ 2035 Tcl_AppendResult(interp, "command not found: ", zDb, (char*)0); 2073 char *zDb; local 4867 char *zDb; /* Db name ("main", "temp" etc.) */ local 4905 char *zDb; /* Db name ("main", "temp" etc.) */ local 5207 char *zDb = 0; local 5251 char *zDb = 0; local [all...] |
H A D | delete.c | 230 const char *zDb; /* Name of database holding pTab */ local 289 zDb = db->aDb[iDb].zName; 290 rcauth = sqlite3AuthCheck(pParse, SQLITE_DELETE, pTab->zName, 0, zDb);
|
H A D | test_stat.c | 586 char *zDb; 594 zDb = Tcl_GetString(objv[1]); 595 if( Tcl_GetCommandInfo(interp, zDb, &cmdInfo) ){
|
H A D | build.c | 336 Index *sqlite3FindIndex(sqlite3 *db, const char *zName, const char *zDb){ argument 341 assert( zDb!=0 || sqlite3BtreeHoldsAllMutexes(db) ); 346 if( zDb && sqlite3StrICmp(zDb, db->aDb[j].zName) ) continue; 777 char *zDb = db->aDb[iDb].zName; local 778 if( sqlite3AuthCheck(pParse, SQLITE_INSERT, SCHEMA_TABLE(isTemp), 0, zDb) ){ 794 if( !isVirtual && sqlite3AuthCheck(pParse, code, zName, 0, zDb) ){ 808 char *zDb = db->aDb[iDb].zName; local 812 pTable = sqlite3FindTable(db, zName, zDb); 822 if( sqlite3FindIndex(db, zName, zDb)! 2022 const char *zDb = db->aDb[iDb].zName; local 2545 const char *zDb = pDb->zName; local 2937 const char *zDb = db->aDb[iDb].zName; local 3516 sqlite3CodeVerifyNamedSchema(Parse *pParse, const char *zDb) argument 3671 const char *zDb; /* Name of the database */ local [all...] |
H A D | analyze.c | 442 char *z, *zDb; local 481 zDb = db->aDb[iDb].zName; 484 if( (pIdx = sqlite3FindIndex(db, z, zDb))!=0 ){ 486 }else if( (pTab = sqlite3LocateTable(pParse, 0, z, zDb))!=0 ){
|
H A D | pragma.c | 310 const char *zDb = 0; /* The database name */ local 342 zDb = pId2->n>0 ? pDb->zName : 0; 343 if( sqlite3AuthCheck(pParse, SQLITE_PRAGMA, zLeft, zRight, zDb) ){ 866 pTab = sqlite3FindTable(db, zRight, zDb); 905 pIdx = sqlite3FindIndex(db, zRight, zDb); 929 pTab = sqlite3FindTable(db, zRight, zDb); 992 pTab = sqlite3FindTable(db, zRight, zDb);
|
H A D | main.c | 1320 const char *zDb, /* Database */ 1325 sqlite3_wal_checkpoint(db, zDb); 1380 ** Checkpoint database zDb. 1384 const char *zDb, /* Name of attached database (or NULL) */ 1407 if( zDb && zDb[0] ){ 1408 iDb = sqlite3FindDbName(db, zDb); 1412 sqlite3Error(db, SQLITE_ERROR, "unknown database: %s", zDb); 1425 ** Checkpoint database zDb. If zDb i 1317 sqlite3WalDefaultHook( void *pClientData, sqlite3 *db, const char *zDb, int nFrame ) argument 1382 sqlite3_wal_checkpoint_v2( sqlite3 *db, const char *zDb, int eMode, int *pnLog, int *pnCkpt ) argument 1429 sqlite3_wal_checkpoint(sqlite3 *db, const char *zDb) argument [all...] |
H A D | backup.c | 80 ** Return a pointer corresponding to database zDb (i.e. "main", "temp") 88 static Btree *findBtree(sqlite3 *pErrorDb, sqlite3 *pDb, const char *zDb){ argument 89 int i = sqlite3FindDbName(pDb, zDb); 113 sqlite3Error(pErrorDb, SQLITE_ERROR, "unknown database %s", zDb);
|
H A D | vdbeblob.c | 110 const char *zDb, /* The attached database containing the blob */ 176 pTab = sqlite3LocateTable(pParse, 0, zTable, zDb); 108 sqlite3_blob_open( sqlite3* db, const char *zDb, const char *zTable, const char *zColumn, sqlite_int64 iRow, int flags, sqlite3_blob **ppBlob ) argument
|
H A D | fkey.c | 692 const char *zDb; /* Name of database containing pTab */ local 702 zDb = db->aDb[iDb].zName; 720 pTo = sqlite3FindTable(db, pFKey->zTo, zDb); 722 pTo = sqlite3LocateTable(pParse, 0, pFKey->zTo, zDb);
|
H A D | sqlite.h.in | 4846 ** in row iRow, column zColumn, table zTable in database zDb; 4850 ** SELECT zColumn FROM zDb.zTable WHERE [rowid] = iRow; 4900 const char *zDb, 6298 int sqlite3_wal_checkpoint(sqlite3 *db, const char *zDb); 6303 ** Run a checkpoint operation on WAL database zDb attached to database 6354 ** If parameter zDb is NULL or points to a zero length string, then the 6365 ** If database zDb is the name of an attached database that is not in WAL 6367 ** zDb is not NULL (or a zero length string) and is not the name of any 6372 const char *zDb, /* Name of attached database (or NULL) */
|
H A D | prepare.c | 575 const char *zDb = db->aDb[i].zName; local 576 sqlite3Error(db, rc, "database schema is locked: %s", zDb);
|
/external/chromium_org/third_party/sqlite/src/test/ |
H A D | tt3_checkpoint.c | 56 const char *zDb, 64 sqlite3_wal_checkpoint_v2(db, zDb, p->eMode, 0, 0); 53 checkpoint_starvation_walhook( void *pCtx, sqlite3 *db, const char *zDb, int nFrame ) argument
|
H A D | threadtest1.c | 268 char *zDb = &zFile[2]; local 269 char *zJournal = sqlite3_mprintf("%s-journal", zDb); 270 unlink(zDb);
|
/external/chromium_org/third_party/sqlite/src/ext/fts3/ |
H A D | fts3_aux.c | 64 char const *zDb; /* Name of database (e.g. "main") */ local 66 int nDb; /* Result of strlen(zDb) */ 82 zDb = argv[1]; 83 nDb = strlen(zDb); 96 p->pFts3Tab->zDb = (char *)&p->pFts3Tab[1]; 97 p->pFts3Tab->zName = &p->pFts3Tab->zDb[nDb+1]; 100 memcpy((char *)p->pFts3Tab->zDb, zDb, nDb);
|
H A D | fts3Int.h | 122 const char *zDb; /* logical database name */ member in struct:Fts3Table
|
/external/chromium_org/third_party/sqlite/src/ext/rtree/ |
H A D | rtree.c | 150 char *zDb; /* Name of database containing r-tree table */ member in struct:Rtree 782 pRtree->zDb, pRtree->zName, 783 pRtree->zDb, pRtree->zName, 784 pRtree->zDb, pRtree->zName 2803 , pRtree->zDb, pRtree->zName, zNewName 2804 , pRtree->zDb, pRtree->zName, zNewName 2805 , pRtree->zDb, pRtree->zName, zNewName 2840 const char *zDb, 2874 zDb, zPrefix, zDb, zPrefi 2837 rtreeSqlInit( Rtree *pRtree, sqlite3 *db, const char *zDb, const char *zPrefix, int isCreate ) argument [all...] |
/external/chromium_org/third_party/sqlite/src/ext/fts1/ |
H A D | fts1.c | 887 * zDb.zName. This may be more convenient than sqlite_mprintf() 891 const char *zDb, const char *zName){ 894 size_t nDb = strlen(zDb); 909 memcpy(r, zDb, nDb); 923 static int sql_exec(sqlite3 *db, const char *zDb, const char *zName, argument 925 char *zCommand = string_format(zFormat, zDb, zName); 933 static int sql_prepare(sqlite3 *db, const char *zDb, const char *zName, argument 935 char *zCommand = string_format(zFormat, zDb, zName); 1087 const char *zDb; /* logical database name */ member in struct:fulltext_vtab 1187 rc = sql_prepare(v->db, v->zDb, 890 string_format(const char *zFormat, const char *zDb, const char *zName) argument 1789 const char *zDb; /* Logical database name */ member in struct:TableSpec [all...] |