Lines Matching defs:pVTab

7846   int (*xBestIndex)(sqlite3_vtab *pVTab, sqlite3_index_info*);
7847 int (*xDisconnect)(sqlite3_vtab *pVTab);
7848 int (*xDestroy)(sqlite3_vtab *pVTab);
7849 int (*xOpen)(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCursor);
7858 int (*xBegin)(sqlite3_vtab *pVTab);
7859 int (*xSync)(sqlite3_vtab *pVTab);
7860 int (*xCommit)(sqlite3_vtab *pVTab);
7861 int (*xRollback)(sqlite3_vtab *pVTab);
7868 int (*xSavepoint)(sqlite3_vtab *pVTab, int);
7869 int (*xRelease)(sqlite3_vtab *pVTab, int);
7870 int (*xRollbackTo)(sqlite3_vtab *pVTab, int);
93395 VTable *pVTab;
93396 pVTab = pOp->p4.pVtab;
93397 rc = sqlite3VtabBegin(db, pVTab);
93398 if( pVTab ) sqlite3VtabImportErrmsg(p, pVTab->pVtab);
97624 bytecodevtab *pVTab = (bytecodevtab*)p;
97629 sqlite3VdbeMemInit(&pCur->sub, pVTab->db, 1);
97712 bytecodevtab *pVTab = (bytecodevtab*)cur->pVtab;
97714 if( pVTab->bTablesUsed ){
97723 sqlite3 *db = pVTab->db;
97767 pCur->zP4 = sqlite3VdbeDisplayP4(pVTab->db, pOp);
97773 char *zCom = sqlite3VdbeDisplayComment(pVTab->db, pOp, pCur->zP4);
97832 bytecodevtab *pVTab = (bytecodevtab *)pVtabCursor->pVtab;
97845 rc = sqlite3_prepare_v2(pVTab->db, zSql, -1, &pCur->pStmt, 0);
97852 pVTab->base.zErrMsg = sqlite3_mprintf(
97854 pVTab->bTablesUsed ? "tables_used" : "bytecode"
97875 bytecodevtab *pVTab = (bytecodevtab*)tab;
97876 int iBaseCol = pVTab->bTablesUsed ? 4 : 8;
106882 VTable *pVTab = 0; /* Non-zero if this is a v-tab with an xRename() */
106941 pVTab = sqlite3GetVTable(db, pTab);
106942 if( pVTab->pVtab->pModule->xRename==0 ){
106943 pVTab = 0;
107022 if( pVTab ){
107025 sqlite3VdbeAddOp4(v, OP_VRename, i, 0, 0,(const char*)pVTab, P4_VTAB);
118026 const char *pVTab = (const char *)sqlite3GetVTable(db, pTab);
118036 sqlite3VdbeAddOp4(v, OP_VUpdate, 0, 1, iKey, pVTab, P4_VTAB);
122344 VTable *pVTab = IsVirtual(pTab) ? sqlite3GetVTable(p->db, pTab) : 0;
122363 if( pOp->opcode==OP_VOpen && pOp->p4.pVtab==pVTab ){
123411 const char *pVTab = (const char *)sqlite3GetVTable(db, pTab);
123413 sqlite3VdbeAddOp4(v, OP_VUpdate, 1, pTab->nCol+2, regIns, pVTab, P4_VTAB);
141098 const char *pVTab = (const char*)sqlite3GetVTable(db, pTab);
141232 sqlite3VdbeAddOp4(v, OP_VUpdate, 0, nArg, regArg, pVTab, P4_VTAB);
142156 SQLITE_PRIVATE void sqlite3VtabLock(VTable *pVTab){
142157 pVTab->nRef++;
142177 SQLITE_PRIVATE void sqlite3VtabUnlock(VTable *pVTab){
142178 sqlite3 *db = pVTab->db;
142181 assert( pVTab->nRef>0 );
142184 pVTab->nRef--;
142185 if( pVTab->nRef==0 ){
142186 sqlite3_vtab *p = pVTab->pVtab;
142187 sqlite3VtabModuleUnref(pVTab->db, pVTab->pMod);
142191 sqlite3DbFree(db, pVTab);
142237 ** list in p->pVTab. It also decrements the VTable ref count. This is
142251 VTable *pVTab = *ppVTab;
142252 *ppVTab = pVTab->pNext;
142253 sqlite3VtabUnlock(pVTab);
142712 ** Add the virtual table pVTab to the array sqlite3.aVTrans[]. Space should
142715 static void addToVTrans(sqlite3 *db, VTable *pVTab){
142717 db->aVTrans[db->nVTrans++] = pVTab;
142718 sqlite3VtabLock(pVTab);
142902 VTable *pVTab = aVTrans[i];
142903 sqlite3_vtab *p = pVTab->pVtab;
142909 pVTab->iSavepoint = 0;
142910 sqlite3VtabUnlock(pVTab);
142968 SQLITE_PRIVATE int sqlite3VtabBegin(sqlite3 *db, VTable *pVTab){
142980 if( !pVTab ){
142983 pModule = pVTab->pVtab->pModule;
142990 if( db->aVTrans[i]==pVTab ){
142999 rc = pModule->xBegin(pVTab->pVtab);
143002 addToVTrans(db, pVTab);
143004 pVTab->iSavepoint = iSvpt;
143005 rc = pModule->xSavepoint(pVTab->pVtab, iSvpt-1);
143036 VTable *pVTab = db->aVTrans[i];
143037 const sqlite3_module *pMod = pVTab->pMod->pModule;
143038 if( pVTab->pVtab && pMod->iVersion>=2 ){
143040 sqlite3VtabLock(pVTab);
143044 pVTab->iSavepoint = iSavepoint+1;
143053 if( xMethod && pVTab->iSavepoint>iSavepoint ){
143054 rc = xMethod(pVTab->pVtab, iSavepoint);
143056 sqlite3VtabUnlock(pVTab);
153474 const char *pVTab = (const char *)sqlite3GetVTable(db, pTab);
153476 sqlite3VdbeAddOp4(v, OP_VOpen, iCur, 0, 0, pVTab, P4_VTAB);
171614 static int fts3BestIndexMethod(sqlite3_vtab *pVTab, sqlite3_index_info *pInfo){
171615 Fts3Table *p = (Fts3Table *)pVTab;
171743 static int fts3OpenMethod(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCsr){
171746 UNUSED_PARAMETER(pVTab);
176255 sqlite3_vtab *pVTab,
176265 UNUSED_PARAMETER(pVTab);
176324 static int fts3auxOpenMethod(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCsr){
176327 UNUSED_PARAMETER(pVTab);
180001 sqlite3_vtab *pVTab,
180005 UNUSED_PARAMETER(pVTab);
180029 static int fts3tokOpenMethod(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCsr){
180031 UNUSED_PARAMETER(pVTab);
192263 static int rtreeOpen(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCursor){
192265 Rtree *pRtree = (Rtree *)pVTab;
192271 pCsr->base.pVtab = pVTab;
204577 static int statOpen(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCursor){
204578 StatTable *pTab = (StatTable *)pVTab;
204586 pCsr->base.pVtab = pVTab;
205319 static int dbpageOpen(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCursor){
205327 pCsr->base.pVtab = pVTab;
227063 static int fts5BestIndexMethod(sqlite3_vtab *pVTab, sqlite3_index_info *pInfo){
227064 Fts5Table *pTab = (Fts5Table*)pVTab;
227209 static int fts5OpenMethod(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCsr){
227210 Fts5FullTable *pTab = (Fts5FullTable*)pVTab;
233468 sqlite3_vtab *pVTab,
233471 Fts5VocabTable *pTab = (Fts5VocabTable*)pVTab;
233479 pVTab->zErrMsg = sqlite3_mprintf(
233507 pVTab->zErrMsg = sqlite3_mprintf(