Home
last modified time | relevance | path

Searched refs:pBt (Results 1 – 13 of 13) sorted by relevance

/titanic_41/usr/src/lib/libsqlite/src/
H A Dbtree.h103 #define btOps(pBt) (*((BtOps **)(pBt))) argument
106 #define sqliteBtreeClose(pBt) (btOps(pBt)->Close(pBt)) argument
107 #define sqliteBtreeSetCacheSize(pBt, sz) (btOps(pBt)->SetCacheSize(pBt, sz)) argument
108 #define sqliteBtreeSetSafetyLevel(pBt, sl) (btOps(pBt)->SetSafetyLevel(pBt, sl)) argument
109 #define sqliteBtreeBeginTrans(pBt) (btOps(pBt)->BeginTrans(pBt)) argument
110 #define sqliteBtreeCommit(pBt) (btOps(pBt)->Commit(pBt)) argument
111 #define sqliteBtreeRollback(pBt) (btOps(pBt)->Rollback(pBt)) argument
112 #define sqliteBtreeBeginCkpt(pBt) (btOps(pBt)->BeginCkpt(pBt)) argument
113 #define sqliteBtreeCommitCkpt(pBt) (btOps(pBt)->CommitCkpt(pBt)) argument
114 #define sqliteBtreeRollbackCkpt(pBt) (btOps(pBt)->RollbackCkpt(pBt)) argument
[all …]
H A Dbtree.c372 Btree *pBt; /* The Btree to which this cursor belongs */ member
412 static int cellSize(Btree *pBt, Cell *pCell){ in cellSize() argument
413 int n = NKEY(pBt, pCell->h) + NDATA(pBt, pCell->h); in cellSize()
428 static void defragmentPage(Btree *pBt, MemPage *pPage){ in defragmentPage() argument
436 pPage->u.hdr.firstCell = SWAB16(pBt, pc); in defragmentPage()
446 n = cellSize(pBt, pCell); in defragmentPage()
447 pCell->h.iNext = SWAB16(pBt, pc + n); in defragmentPage()
458 pFBlk->iSize = SWAB16(pBt, SQLITE_USABLE_SIZE - pc); in defragmentPage()
460 pPage->u.hdr.firstFree = SWAB16(pBt, pc); in defragmentPage()
477 static int allocateSpace(Btree *pBt, MemPage *pPage, int nByte){ in allocateSpace() argument
[all …]
H A Dtest3.c65 Btree *pBt; in btree_open() local
73 rc = sqliteBtreeFactory(0, argv[1], 0, 1000, &pBt); in btree_open()
78 sprintf(zBuf,"%p", pBt); in btree_open()
80 sprintf(zBuf, "0x%p", pBt); in btree_open()
97 Btree *pBt; in btree_close() local
104 if( Tcl_GetInt(interp, argv[1], (int*)&pBt) ) return TCL_ERROR; in btree_close()
105 rc = sqliteBtreeClose(pBt); in btree_close()
124 Btree *pBt; in btree_begin_transaction() local
131 if( Tcl_GetInt(interp, argv[1], (int*)&pBt) ) return TCL_ERROR; in btree_begin_transaction()
132 rc = sqliteBtreeBeginTrans(pBt); in btree_begin_transaction()
[all …]
H A Dmain.c262 if( db->aDb[iDb].pBt==0 ) return SQLITE_OK; in sqliteInitOne()
263 rc = sqliteBtreeCursor(db->aDb[iDb].pBt, 2, 0, &curMain); in sqliteInitOne()
271 rc = sqliteBtreeGetMeta(db->aDb[iDb].pBt, meta); in sqliteInitOne()
314 sqliteBtreeClose(db->aDb[iDb].pBt); in sqliteInitOne()
315 db->aDb[iDb].pBt = 0; in sqliteInitOne()
318 sqliteBtreeSetCacheSize(db->aDb[iDb].pBt, db->cache_size); in sqliteInitOne()
319 sqliteBtreeSetSafetyLevel(db->aDb[iDb].pBt, meta[4]==0 ? 2 : meta[4]); in sqliteInitOne()
434 sqliteBtreeGetMeta(db->aDb[0].pBt, meta); in sqliteInit()
436 sqliteBtreeUpdateMeta(db->aDb[0].pBt, meta); in sqliteInit()
504 rc = sqliteBtreeFactory(db, zFilename, 0, MAX_PAGES, &db->aDb[0].pBt); in sqlite_open()
[all …]
H A Dattach.c93 rc = sqliteBtreeFactory(db, zFile, 0, MAX_PAGES, &aNew->pBt); in sqliteAttach()
122 if( db->aDb[i].pBt ){ in sqliteAttach()
123 sqliteBtreeClose(db->aDb[i].pBt); in sqliteAttach()
124 db->aDb[i].pBt = 0; in sqliteAttach()
151 if( pDb->pBt==0 || pDb->zName==0 ) continue; in sqliteDetach()
168 sqliteBtreeClose(pDb->pBt); in sqliteDetach()
169 pDb->pBt = 0; in sqliteDetach()
H A Dpragma.c98 if( db->aDb[1].pBt!=0 ){ in changeTempStorage()
104 sqliteBtreeClose(db->aDb[1].pBt); in changeTempStorage()
105 db->aDb[1].pBt = 0; in changeTempStorage()
227 sqliteBtreeSetCacheSize(db->aDb[0].pBt, db->cache_size); in sqlitePragma()
260 sqliteBtreeSetCacheSize(db->aDb[0].pBt, db->cache_size); in sqlitePragma()
322 sqliteBtreeSetCacheSize(db->aDb[0].pBt, db->cache_size); in sqlitePragma()
323 sqliteBtreeSetSafetyLevel(db->aDb[0].pBt, db->safety_level); in sqlitePragma()
350 sqliteBtreeSetCacheSize(db->aDb[0].pBt, db->cache_size); in sqlitePragma()
351 sqliteBtreeSetSafetyLevel(db->aDb[0].pBt, db->safety_level); in sqlitePragma()
496 if( db->aDb[i].pBt==0 ) continue; in sqlitePragma()
[all …]
H A Dvacuum.c253 zFilename = sqliteBtreeGetFilename(db->aDb[0].pBt); in sqliteRunVacuum()
306 rc = sqliteBtreeCopyFile(db->aDb[0].pBt, dbNew->aDb[0].pBt); in sqliteRunVacuum()
H A Dvdbe.c2157 if( i>=0 && i<db->nDb && db->aDb[i].pBt && db->aDb[i].inTrans==1 ){ in sqliteVdbeExec()
2158 rc = sqliteBtreeBeginCkpt(db->aDb[i].pBt); in sqliteVdbeExec()
2185 while( db->aDb[i].pBt!=0 && busy ){ in sqliteVdbeExec()
2186 rc = sqliteBtreeBeginTrans(db->aDb[i].pBt); in sqliteVdbeExec()
2239 rc = sqliteBtreeCommit(db->aDb[i].pBt); in sqliteVdbeExec()
2286 assert( db->aDb[pOp->p1].pBt!=0 ); in sqliteVdbeExec()
2287 rc = sqliteBtreeGetMeta(db->aDb[pOp->p1].pBt, aMeta); in sqliteVdbeExec()
2308 assert( db->aDb[pOp->p1].pBt!=0 ); in sqliteVdbeExec()
2311 rc = sqliteBtreeGetMeta(db->aDb[pOp->p1].pBt, aMeta); in sqliteVdbeExec()
2314 rc = sqliteBtreeUpdateMeta(db->aDb[pOp->p1].pBt, aMeta); in sqliteVdbeExec()
[all …]
H A Dvdbeaux.c737 if( pCx->pBt ){ in sqliteVdbeCleanupCursor()
738 sqliteBtreeClose(pCx->pBt); in sqliteVdbeCleanupCursor()
861 if( db->aDb[i].pBt ){ in sqliteVdbeReset()
862 sqliteBtreeRollbackCkpt(db->aDb[i].pBt); in sqliteVdbeReset()
887 if( db->aDb[i].pBt && db->aDb[i].inTrans==2 ){ in sqliteVdbeReset()
888 sqliteBtreeCommitCkpt(db->aDb[i].pBt); in sqliteVdbeReset()
H A Dbuild.c261 if( pDb->pBt==0 ){ in sqliteResetInternalSchema()
268 if( pDb->pBt==0 ){ in sqliteResetInternalSchema()
477 if( isTemp && db->aDb[1].pBt==0 && !pParse->explain ){ in sqliteStartTable()
478 int rc = sqliteBtreeFactory(db, 0, 0, MAX_PAGES, &db->aDb[1].pBt); in sqliteStartTable()
486 rc = sqliteBtreeBeginTrans(db->aDb[1].pBt); in sqliteStartTable()
2025 if( pParse==0 || (db=pParse->db)==0 || db->aDb[0].pBt==0 ) return; in sqliteBeginTransaction()
2045 if( pParse==0 || (db=pParse->db)==0 || db->aDb[0].pBt==0 ) return; in sqliteCommitTransaction()
2068 if( pParse==0 || (db=pParse->db)==0 || db->aDb[0].pBt==0 ) return; in sqliteRollbackTransaction()
2093 assert( db->aDb[iDb].pBt!=0 ); in sqliteCodeVerifySchema()
H A DvdbeInt.h79 Btree *pBt; /* Separate file holding temporary table */ member
H A Dbtree_rb.c1263 static int memRbtreeSetSafetyLevel(Rbtree *pBt, int level){ in memRbtreeSetSafetyLevel() argument
1434 static const char *memRbtreeGetFilename(Rbtree *pBt){ in memRbtreeGetFilename() argument
1441 static int memRbtreeCopyFile(Rbtree *pBt, Rbtree *pBt2){ in memRbtreeCopyFile() argument
H A DsqliteInt.h265 Btree *pBt; /* The B*Tree structure for this database file */ member