| /sqlite-3.40.0/ext/misc/ |
| H A D | urifuncs.c | 44 const char *zSchema = (const char*)sqlite3_value_text(argv[0]); in func_db_filename() local 46 const char *zFile = sqlite3_db_filename(db, zSchema); in func_db_filename() 60 const char *zSchema = (const char*)sqlite3_value_text(argv[0]); in func_uri_parameter() local 63 const char *zFile = sqlite3_db_filename(db, zSchema); in func_uri_parameter() 79 const char *zSchema = (const char*)sqlite3_value_text(argv[0]); in func_uri_boolean() local 82 const char *zFile = sqlite3_db_filename(db, zSchema); in func_uri_boolean() 101 const char *zFile = sqlite3_db_filename(db, zSchema); in func_uri_key() 120 const char *zFile = sqlite3_db_filename(db, zSchema); in func_uri_int64() 138 const char *zFile = sqlite3_db_filename(db, zSchema); in func_filename_database() 155 const char *zFile = sqlite3_db_filename(db, zSchema); in func_filename_journal() [all …]
|
| H A D | blobio.c | 38 const char *zSchema; in readblobFunc() local 48 zSchema = (const char*)sqlite3_value_text(argv[0]); in readblobFunc() 69 rc = sqlite3_blob_open(db, zSchema, zTable, zColumn, iRowid, 0, &pBlob); in readblobFunc() 91 const char *zSchema; in writeblobFunc() local 101 zSchema = (const char*)sqlite3_value_text(argv[0]); in writeblobFunc() 121 rc = sqlite3_blob_open(db, zSchema, zTable, zColumn, iRowid, 1, &pBlob); in writeblobFunc()
|
| H A D | btreeinfo.c | 98 char *zSchema; /* Schema being interrogated */ member 203 sqlite3_free(pCsr->zSchema); in binfoClose() 238 sqlite3_free(pCsr->zSchema); in binfoFilter() 240 pCsr->zSchema = sqlite3_mprintf("%s", sqlite3_value_text(argv[0])); in binfoFilter() 242 pCsr->zSchema = sqlite3_mprintf("main"); in binfoFilter() 249 pCsr->zSchema); in binfoFilter() 372 sqlite3_result_text(ctx, pCsr->zSchema, -1, SQLITE_STATIC); in binfoColumn()
|
| H A D | dbdump.c | 634 const char *zSchema, /* Which schema to dump. Usually "main". */ in sqlite3_db_dump() argument 651 zSchema in sqlite3_db_dump() 655 "WHERE name=='sqlite_sequence'", zSchema in sqlite3_db_dump() 666 zSchema, zTable in sqlite3_db_dump() 673 zSchema, zTable in sqlite3_db_dump() 698 const char *zSchema; in main() local 707 zSchema = argc>=3 ? argv[2] : "main"; in main() 716 rc = sqlite3_db_dump(db, zSchema, zTable, in main()
|
| H A D | vtablog.c | 175 char *zSchema = 0; in vtablogConnectCreate() local 191 if( vtablog_string_parameter(pzErr, "schema", z, &zSchema) ){ in vtablogConnectCreate() 199 if( zSchema==0 ){ in vtablogConnectCreate() 203 rc = sqlite3_declare_vtab(db, zSchema); in vtablogConnectCreate()
|
| H A D | memvfs.c | 513 const char *zSchema = (const char*)sqlite3_value_text(argv[0]); in memvfsToFileFunc() local 519 rc = sqlite3_file_control(db, zSchema, SQLITE_FCNTL_VFS_POINTER, &pVfs); in memvfsToFileFunc() 522 rc = sqlite3_file_control(db, zSchema, SQLITE_FCNTL_FILE_POINTER, &p); in memvfsToFileFunc()
|
| /sqlite-3.40.0/ext/recover/ |
| H A D | dbdata.c | 702 static int dbdataIsFunction(const char *zSchema){ in dbdataIsFunction() argument 703 size_t n = strlen(zSchema); in dbdataIsFunction() 704 if( n>2 && zSchema[n-2]=='(' && zSchema[n-1]==')' ){ in dbdataIsFunction() 723 if( (nFunc = dbdataIsFunction(zSchema))>0 ){ in dbdataDbsize() 724 zSql = sqlite3_mprintf("SELECT %.*s(0)", nFunc, zSchema); in dbdataDbsize() 726 zSql = sqlite3_mprintf("PRAGMA %Q.page_count", zSchema); in dbdataDbsize() 770 const char *zSchema = "main"; in dbdataFilter() local 775 zSchema = (const char*)sqlite3_value_text(argv[0]); in dbdataFilter() 776 if( zSchema==0 ) zSchema = ""; in dbdataFilter() 782 rc = dbdataDbsize(pCsr, zSchema); in dbdataFilter() [all …]
|
| /sqlite-3.40.0/src/ |
| H A D | memdb.c | 691 static MemFile *memdbFromDbSchema(sqlite3 *db, const char *zSchema){ in memdbFromDbSchema() argument 709 const char *zSchema, /* Which database within the connection */ in sqlite3_serialize() argument 730 if( zSchema==0 ) zSchema = db->aDb[0].zDbSName; in sqlite3_serialize() 731 p = memdbFromDbSchema(db, zSchema); in sqlite3_serialize() 732 iDb = sqlite3FindDbName(db, zSchema); in sqlite3_serialize() 750 zSql = sqlite3_mprintf("PRAGMA \"%w\".page_count", zSchema); in sqlite3_serialize() 790 const char *zSchema, /* Which DB to reopen with the deserialization */ in sqlite3_deserialize() argument 811 if( zSchema==0 ) zSchema = db->aDb[0].zDbSName; in sqlite3_deserialize() 812 iDb = sqlite3FindDbName(db, zSchema); in sqlite3_deserialize() 818 zSql = sqlite3_mprintf("ATTACH x AS %Q", zSchema); in sqlite3_deserialize() [all …]
|
| H A D | dbpage.c | 233 const char *zSchema; in dbpageFilter() local 235 zSchema = (const char*)sqlite3_value_text(argv[0]); in dbpageFilter() 236 pCsr->iDb = sqlite3FindDbName(db, zSchema); in dbpageFilter() 317 const char *zSchema; in dbpageUpdate() local 336 zSchema = (const char*)sqlite3_value_text(argv[4]); in dbpageUpdate() 337 iDb = zSchema ? sqlite3FindDbName(pTab->db, zSchema) : -1; in dbpageUpdate()
|
| H A D | vdbevtab.c | 42 const char *zSchema; /* tables_used.schema */ member 135 pCur->zSchema = 0; in bytecodevtabCursorClear() 164 pCur->zSchema = 0; in bytecodevtabNext() 212 pCur->zSchema = db->aDb[iDb].zDbSName; in bytecodevtabColumn() 285 sqlite3_result_text(ctx, pCur->zSchema, -1, SQLITE_STATIC); in bytecodevtabColumn()
|
| H A D | test_tclvar.c | 88 static const char zSchema[] = in tclvarConnect() local 99 sqlite3_declare_vtab(db, zSchema); in tclvarConnect()
|
| H A D | tclsqlite.c | 2633 const char *zSchema = 0; in DbObjCmd() 2662 if( zSchema==0 && i==objc-2 && z[0]!='-' ){ in DbObjCmd() 2663 zSchema = z; in DbObjCmd() 2684 xrc = sqlite3_deserialize(pDb->db, zSchema, pData, len, len, flags); in DbObjCmd() 2690 sqlite3_file_control(pDb->db, zSchema,SQLITE_FCNTL_SIZE_LIMIT,&mxSize); in DbObjCmd() 3213 const char *zSchema = objc>=3 ? Tcl_GetString(objv[2]) : "main"; in DbObjCmd() 3221 pData = sqlite3_serialize(pDb->db, zSchema, &sz, SQLITE_SERIALIZE_NOCOPY); in DbObjCmd() 3225 pData = sqlite3_serialize(pDb->db, zSchema, &sz, 0); in DbObjCmd()
|
| H A D | shell.c.in | 903 zSchema ? zSchema : "main", zName); 908 if( zSchema ){ 909 cQuote = quoteChar(zSchema); 911 appendText(&s, zSchema, cQuote); 1001 if( zSchema ){ 1002 char cQuote = quoteChar(zSchema); 7895 azName[nName*2] = strdup(zSchema); 8188 const char *zSchema = 0; local 8197 zSchema = azArg[2]; 8423 zSchema = azArg[++i]; [all …]
|
| H A D | main.c | 1256 int sqlite3_txn_state(sqlite3 *db, const char *zSchema){ in sqlite3_txn_state() argument 1266 if( zSchema ){ in sqlite3_txn_state() 1267 nDb = iDb = sqlite3FindDbName(db, zSchema); in sqlite3_txn_state()
|
| H A D | test1.c | 8203 const char *zSchema; in test_sqlite3_txn_state() local 8211 zSchema = objc==3 ? Tcl_GetString(objv[2]) : 0; in test_sqlite3_txn_state() 8212 iTxn = sqlite3_txn_state(db, zSchema); in test_sqlite3_txn_state() 8437 const char *zSchema, in test_autovacuum_pages_callback() argument 8448 Tcl_DStringAppendElement(&str, zSchema); in test_autovacuum_pages_callback()
|
| H A D | vdbe.c | 6786 const char *zSchema; in sqlite3VdbeExec() local 6816 zSchema = LEGACY_SCHEMA_TABLE; in sqlite3VdbeExec() 6824 db->aDb[iDb].zDbSName, zSchema, pOp->p4.z); in sqlite3VdbeExec()
|
| H A D | sqlite.h.in | 6405 int sqlite3_txn_state(sqlite3*,const char *zSchema); 6555 ** const char *zSchema, 10209 const char *zSchema, 10258 const char *zSchema, 10368 const char *zSchema, /* Which DB to serialize. ex: "main", "temp", ... */ 10424 const char *zSchema, /* Which DB to reopen with the deserialization */
|
| /sqlite-3.40.0/ext/repair/ |
| H A D | sqlite3_checker.c.in | 50 const char *zSchema; local 59 zSchema = Tcl_GetString(objv[2]); 61 sqlite3_test_control(SQLITE_TESTCTRL_IMPOSTER, db, zSchema, 0, 1); 65 sqlite3_test_control(SQLITE_TESTCTRL_IMPOSTER, db, zSchema, 1, iRoot); 67 sqlite3_test_control(SQLITE_TESTCTRL_IMPOSTER, db, zSchema, 0, 0);
|
| /sqlite-3.40.0/test/ |
| H A D | vt02.c | 221 const char *zSchema = (const char*)pAux; in vt02Connect() local 241 rc = sqlite3_declare_vtab(db, zSchema ? zSchema : zDefaultSchema); in vt02Connect()
|
| H A D | fkey2.test | 1390 foreach {tn zSchema} { 1397 execsql $zSchema
|
| H A D | without_rowid3.test | 1365 foreach {tn zSchema} { 1374 execsql $zSchema
|
| /sqlite-3.40.0/ext/fts1/ |
| H A D | fts1.c | 1918 char *zSchema, *zNext; in fulltextSchema() local 1920 zSchema = sqlite3_mprintf("CREATE TABLE x"); in fulltextSchema() 1922 zNext = sqlite3_mprintf("%s%s%Q", zSchema, zSep, azColumn[i]); in fulltextSchema() 1923 sqlite3_free(zSchema); in fulltextSchema() 1924 zSchema = zNext; in fulltextSchema() 1927 zNext = sqlite3_mprintf("%s,%Q)", zSchema, zTableName); in fulltextSchema() 1928 sqlite3_free(zSchema); in fulltextSchema()
|
| /sqlite-3.40.0/ext/fts2/ |
| H A D | fts2.c | 2786 char *zSchema, *zNext; in fulltextSchema() local 2788 zSchema = sqlite3_mprintf("CREATE TABLE x"); in fulltextSchema() 2790 zNext = sqlite3_mprintf("%s%s%Q", zSchema, zSep, azColumn[i]); in fulltextSchema() 2791 sqlite3_free(zSchema); in fulltextSchema() 2792 zSchema = zNext; in fulltextSchema() 2795 zNext = sqlite3_mprintf("%s,%Q)", zSchema, zTableName); in fulltextSchema() 2796 sqlite3_free(zSchema); in fulltextSchema()
|