Lines Matching refs:pVTab
7401 int (*xBestIndex)(sqlite3_vtab *pVTab, sqlite3_index_info*);
7402 int (*xDisconnect)(sqlite3_vtab *pVTab);
7403 int (*xDestroy)(sqlite3_vtab *pVTab);
7404 int (*xOpen)(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCursor);
7413 int (*xBegin)(sqlite3_vtab *pVTab);
7414 int (*xSync)(sqlite3_vtab *pVTab);
7415 int (*xCommit)(sqlite3_vtab *pVTab);
7416 int (*xRollback)(sqlite3_vtab *pVTab);
7423 int (*xSavepoint)(sqlite3_vtab *pVTab, int);
7424 int (*xRelease)(sqlite3_vtab *pVTab, int);
7425 int (*xRollbackTo)(sqlite3_vtab *pVTab, int);
98292 VTable *pVTab;
98293 pVTab = pOp->p4.pVtab;
98294 rc = sqlite3VtabBegin(db, pVTab);
98295 if( pVTab ) sqlite3VtabImportErrmsg(p, pVTab->pVtab);
102656 bytecodevtab *pVTab = (bytecodevtab*)p;
102661 sqlite3VdbeMemInit(&pCur->sub, pVTab->db, 1);
102744 bytecodevtab *pVTab = (bytecodevtab*)cur->pVtab;
102746 if( pVTab->bTablesUsed ){
102755 sqlite3 *db = pVTab->db;
102799 pCur->zP4 = sqlite3VdbeDisplayP4(pVTab->db, pOp);
102805 char *zCom = sqlite3VdbeDisplayComment(pVTab->db, pOp, pCur->zP4);
102864 bytecodevtab *pVTab = (bytecodevtab *)pVtabCursor->pVtab;
102877 rc = sqlite3_prepare_v2(pVTab->db, zSql, -1, &pCur->pStmt, 0);
102884 pVTab->base.zErrMsg = sqlite3_mprintf(
102886 pVTab->bTablesUsed ? "tables_used" : "bytecode"
102907 bytecodevtab *pVTab = (bytecodevtab*)tab;
102908 int iBaseCol = pVTab->bTablesUsed ? 4 : 8;
112463 VTable *pVTab = 0; /* Non-zero if this is a v-tab with an xRename() */
112519 pVTab = sqlite3GetVTable(db, pTab);
112520 if( pVTab->pVtab->pModule->xRename==0 ){
112521 pVTab = 0;
112600 if( pVTab ){
112603 sqlite3VdbeAddOp4(v, OP_VRename, i, 0, 0,(const char*)pVTab, P4_VTAB);
124319 const char *pVTab = (const char *)sqlite3GetVTable(db, pTab);
124329 sqlite3VdbeAddOp4(v, OP_VUpdate, 0, 1, iKey, pVTab, P4_VTAB);
128832 VTable *pVTab = IsVirtual(pTab) ? sqlite3GetVTable(p->db, pTab) : 0;
128851 if( pOp->opcode==OP_VOpen && pOp->p4.pVtab==pVTab ){
129935 const char *pVTab = (const char *)sqlite3GetVTable(db, pTab);
129937 sqlite3VdbeAddOp4(v, OP_VUpdate, 1, pTab->nCol+2, regIns, pVTab, P4_VTAB);
149038 const char *pVTab = (const char*)sqlite3GetVTable(db, pTab);
149174 sqlite3VdbeAddOp4(v, OP_VUpdate, 0, nArg, regArg, pVTab, P4_VTAB);
150118 SQLITE_PRIVATE void sqlite3VtabLock(VTable *pVTab){
150119 pVTab->nRef++;
150139 SQLITE_PRIVATE void sqlite3VtabUnlock(VTable *pVTab){
150140 sqlite3 *db = pVTab->db;
150143 assert( pVTab->nRef>0 );
150147 pVTab->nRef--;
150148 if( pVTab->nRef==0 ){
150149 sqlite3_vtab *p = pVTab->pVtab;
150150 sqlite3VtabModuleUnref(pVTab->db, pVTab->pMod);
150154 sqlite3DbFree(db, pVTab);
150203 ** list in p->pVTab. It also decrements the VTable ref count. This is
150217 VTable *pVTab = *ppVTab;
150218 *ppVTab = pVTab->pNext;
150219 sqlite3VtabUnlock(pVTab);
150685 ** Add the virtual table pVTab to the array sqlite3.aVTrans[]. Space should
150688 static void addToVTrans(sqlite3 *db, VTable *pVTab){
150690 db->aVTrans[db->nVTrans++] = pVTab;
150691 sqlite3VtabLock(pVTab);
150887 VTable *pVTab = aVTrans[i];
150888 sqlite3_vtab *p = pVTab->pVtab;
150894 pVTab->iSavepoint = 0;
150895 sqlite3VtabUnlock(pVTab);
150953 SQLITE_PRIVATE int sqlite3VtabBegin(sqlite3 *db, VTable *pVTab){
150965 if( !pVTab ){
150968 pModule = pVTab->pVtab->pModule;
150975 if( db->aVTrans[i]==pVTab ){
150984 rc = pModule->xBegin(pVTab->pVtab);
150987 addToVTrans(db, pVTab);
150989 pVTab->iSavepoint = iSvpt;
150990 rc = pModule->xSavepoint(pVTab->pVtab, iSvpt-1);
151021 VTable *pVTab = db->aVTrans[i];
151022 const sqlite3_module *pMod = pVTab->pMod->pModule;
151023 if( pVTab->pVtab && pMod->iVersion>=2 ){
151025 sqlite3VtabLock(pVTab);
151029 pVTab->iSavepoint = iSavepoint+1;
151038 if( xMethod && pVTab->iSavepoint>iSavepoint ){
151039 rc = xMethod(pVTab->pVtab, iSavepoint);
151041 sqlite3VtabUnlock(pVTab);
162553 const char *pVTab = (const char *)sqlite3GetVTable(db, pTab);
162555 sqlite3VdbeAddOp4(v, OP_VOpen, iCur, 0, 0, pVTab, P4_VTAB);
181252 static int fts3BestIndexMethod(sqlite3_vtab *pVTab, sqlite3_index_info *pInfo){
181253 Fts3Table *p = (Fts3Table *)pVTab;
181381 static int fts3OpenMethod(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCsr){
181384 UNUSED_PARAMETER(pVTab);
185910 sqlite3_vtab *pVTab,
185920 UNUSED_PARAMETER(pVTab);
185979 static int fts3auxOpenMethod(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCsr){
185982 UNUSED_PARAMETER(pVTab);
189661 sqlite3_vtab *pVTab,
189665 UNUSED_PARAMETER(pVTab);
189689 static int fts3tokOpenMethod(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCsr){
189691 UNUSED_PARAMETER(pVTab);
202018 static int rtreeOpen(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCursor){
202020 Rtree *pRtree = (Rtree *)pVTab;
202026 pCsr->base.pVtab = pVTab;
214471 static int statOpen(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCursor){
214472 StatTable *pTab = (StatTable *)pVTab;
214480 pCsr->base.pVtab = pVTab;
215253 static int dbpageOpen(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCursor){
215261 pCsr->base.pVtab = pVTab;
237375 static int fts5BestIndexMethod(sqlite3_vtab *pVTab, sqlite3_index_info *pInfo){
237376 Fts5Table *pTab = (Fts5Table*)pVTab;
237521 static int fts5OpenMethod(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCsr){
237522 Fts5FullTable *pTab = (Fts5FullTable*)pVTab;
243791 sqlite3_vtab *pVTab,
243794 Fts5VocabTable *pTab = (Fts5VocabTable*)pVTab;
243802 pVTab->zErrMsg = sqlite3_mprintf(
243830 pVTab->zErrMsg = sqlite3_mprintf(