/illumos-gate/usr/src/lib/libsqlite/src/ |
H A D | test4.c | 36 char *zFilename; /* Name of database file */ member in struct:Thread 71 p->db = sqlite_open(p->zFilename, 0, &p->zErr); 141 sqliteFree(threadset[i].zFilename); 142 threadset[i].zFilename = sqliteStrDup(argv[2]); 148 sqliteFree(threadset[i].zFilename); 201 sqliteFree(p->zFilename); 202 p->zFilename = 0;
|
H A D | vacuum.c | 223 const char *zFilename; /* full pathname of the database file */ local 224 int nFilename; /* number of characters in zFilename[] */ 225 char *zTemp = 0; /* a temporary file in same directory as zFilename */ 253 zFilename = sqliteBtreeGetFilename(db->aDb[0].pBt); 254 if( zFilename==0 ){ 259 nFilename = strlen(zFilename); 262 strcpy(zTemp, zFilename);
|
H A D | main.c | 478 sqlite *sqlite_open(const char *zFilename, int mode, char **pzErrMsg){ argument 501 if( zFilename[0]==':' && strcmp(zFilename,":memory:")==0 ){ 504 rc = sqliteBtreeFactory(db, zFilename, 0, MAX_PAGES, &db->aDb[0].pBt); 509 zFilename, (char*)0); 1089 ** driver. If zFilename is the name of a file, then that file is 1090 ** opened and used. If zFilename is the magic name ":memory:" then 1092 ** the connection is closed.) If zFilename is NULL then the database 1114 const char *zFilename, /* Name of the file containing the BTree database */ 1122 if( zFilename 1112 sqliteBtreeFactory( const sqlite *db, const char *zFilename, int omitJournal, int nCache, Btree **ppBtree) argument [all...] |
H A D | btree_rb.c | 616 const char *zFilename, 615 sqliteRbtreeOpen( const char *zFilename, int mode, int nPg, Btree **ppBtree ) argument
|
H A D | os.c | 393 int sqliteOsDelete(const char *zFilename){ argument 395 unlink(zFilename); 398 DeleteFile(zFilename); 401 unlink(zFilename); 409 int sqliteOsFileExists(const char *zFilename){ argument 411 return access(zFilename, 0)==0; 414 return GetFileAttributes(zFilename) != 0xffffffff; 417 return access(zFilename, 0)==0; 461 const char *zFilename, 468 id->fd = open(zFilename, O_RDW 460 sqliteOsOpenReadWrite( const char *zFilename, OsFile *id, int *pReadonly ) argument 592 sqliteOsOpenExclusive(const char *zFilename, OsFile *id, int delFlag) argument 683 sqliteOsOpenReadOnly(const char *zFilename, OsFile *id) argument [all...] |
H A D | pager.c | 160 char *zFilename; /* Name of the database file */ member in struct:Pager 190 u8 tempFile; /* zFilename is a temporary file */ 921 ** If zFilename is NULL then a randomly-named temporary file is created 927 const char *zFilename, /* Name of the database file to open */ 945 if( zFilename && zFilename[0] ){ 946 zFullPathname = sqliteOsFullPathname(zFilename); 951 zFilename = zTemp; 952 zFullPathname = sqliteOsFullPathname(zFilename); 970 pPager->zFilename 925 sqlitepager_open( Pager **ppPager, const char *zFilename, int mxPage, int nExtra, int useJournal ) argument [all...] |
H A D | btree.c | 683 ** zFilename is the name of the database file. If zFilename is NULL 688 const char *zFilename, /* Name of the file containing the BTree database */ 718 rc = sqlitepager_open(&pBt->pPager, zFilename, nCache, EXTRA_SIZE, 687 sqliteBtreeOpen( const char *zFilename, int omitJournal, int nCache, Btree **ppBtree ) argument
|
/illumos-gate/usr/src/lib/libsqlite/test/ |
H A D | threadtest1.c | 200 const char *zFilename = (char*)pArg; local 203 int t = atoi(zFilename); 210 printf("%s: START\n", zFilename); 213 db = sqlite_open(&zFilename[2], 0, &azErr); 215 fprintf(stdout,"%s: can't open\n", zFilename); 218 sqlite_busy_handler(db, db_is_locked, zFilename); 219 db_execute(db, zFilename, "CREATE TABLE t%d(a,b,c);", t); 221 db_execute(db, zFilename, "INSERT INTO t%d VALUES(%d,%d,%d);", 224 az = db_query(db, zFilename, "SELECT count(*) FROM t%d", t); 225 db_check(zFilename, "t [all...] |