Home | History | Annotate | Download | only in dist

Lines Matching refs:pVtab

5506   int (*xBestIndex)(sqlite3_vtab *pVTab, sqlite3_index_info*);
5507 int (*xDisconnect)(sqlite3_vtab *pVTab);
5508 int (*xDestroy)(sqlite3_vtab *pVTab);
5509 int (*xOpen)(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCursor);
5518 int (*xBegin)(sqlite3_vtab *pVTab);
5519 int (*xSync)(sqlite3_vtab *pVTab);
5520 int (*xCommit)(sqlite3_vtab *pVTab);
5521 int (*xRollback)(sqlite3_vtab *pVTab);
5522 int (*xFindFunction)(sqlite3_vtab *pVtab, int nArg, const char *zName,
5525 int (*xRename)(sqlite3_vtab *pVtab, const char *zNew);
5528 int (*xSavepoint)(sqlite3_vtab *pVTab, int);
5529 int (*xRelease)(sqlite3_vtab *pVTab, int);
5530 int (*xRollbackTo)(sqlite3_vtab *pVTab, int);
5709 sqlite3_vtab *pVtab; /* Virtual table of this cursor */
8479 VTable *pVtab; /* Used when p4type is P4_VTAB */
10137 sqlite3_vtab *pVtab; /* Pointer to vtab instance */
60451 sqlite3_vtab *pVtab = pOp->p4.pVtab->pVtab;
60452 sqlite3_snprintf(nTemp, zTemp, "vtab:%p:%p", pVtab, pVtab->pModule);
64941 static void importVtabErrMsg(Vdbe *p, sqlite3_vtab *pVtab){
64944 p->zErrMsg = sqlite3DbStrDup(db, pVtab->zErrMsg);
64945 sqlite3_free(pVtab->zErrMsg);
64946 pVtab->zErrMsg = 0;
65255 sqlite3_vtab *pVtab;
65377 VTable *pVTab;
65382 sqlite3_vtab *pVtab;
65392 sqlite3_vtab *pVtab;
65399 sqlite3_vtab *pVtab;
65405 sqlite3_vtab *pVtab;
65411 sqlite3_vtab *pVtab;
65415 sqlite3_vtab *pVtab;
69184 sqlite3_vtab *pVtab;
69199 u.bm.pVtab = u.bm.pC->pVtabCursor->pVtab;
69200 u.bm.pModule = u.bm.pVtab->pModule;
69203 importVtabErrMsg(p, u.bm.pVtab);
70635 VTable *pVTab;
70637 u.ck.pVTab = pOp->p4.pVtab;
70638 rc = sqlite3VtabBegin(db, u.ck.pVTab);
70639 if( u.ck.pVTab ) importVtabErrMsg(p, u.ck.pVTab->pVtab);
70681 sqlite3_vtab *pVtab;
70687 u.cl.pVtab = pOp->p4.pVtab->pVtab;
70688 u.cl.pModule = (sqlite3_module *)u.cl.pVtab->pModule;
70689 assert(u.cl.pVtab && u.cl.pModule);
70690 rc = u.cl.pModule->xOpen(u.cl.pVtab, &u.cl.pVtabCursor);
70691 importVtabErrMsg(p, u.cl.pVtab);
70694 u.cl.pVtabCursor->pVtab = u.cl.pVtab;
70700 u.cl.pCur->pModule = u.cl.pVtabCursor->pVtab->pModule;
70737 sqlite3_vtab *pVtab;
70751 u.cm.pVtab = u.cm.pVtabCursor->pVtab;
70752 u.cm.pModule = u.cm.pVtab->pModule;
70771 importVtabErrMsg(p, u.cm.pVtab);
70795 sqlite3_vtab *pVtab;
70810 u.cn.pVtab = pCur->pVtabCursor->pVtab;
70811 u.cn.pModule = u.cn.pVtab->pModule;
70824 importVtabErrMsg(p, u.cn.pVtab);
70854 sqlite3_vtab *pVtab;
70866 u.co.pVtab = u.co.pCur->pVtabCursor->pVtab;
70867 u.co.pModule = u.co.pVtab->pModule;
70879 importVtabErrMsg(p, u.co.pVtab);
70901 sqlite3_vtab *pVtab;
70905 u.cp.pVtab = pOp->p4.pVtab->pVtab;
70907 assert( u.cp.pVtab->pModule->xRename );
70916 rc = u.cp.pVtab->pModule->xRename(u.cp.pVtab, u.cp.pName->z);
70917 importVtabErrMsg(p, u.cp.pVtab);
70950 sqlite3_vtab *pVtab;
70962 u.cq.pVtab = pOp->p4.pVtab->pVtab;
70963 u.cq.pModule = (sqlite3_module *)u.cq.pVtab->pModule;
70978 rc = u.cq.pModule->xUpdate(u.cq.pVtab, u.cq.nArg, u.cq.apArg, &u.cq.rowid);
70980 importVtabErrMsg(p, u.cq.pVtab);
70985 if( rc==SQLITE_CONSTRAINT && pOp->p4.pVtab->bConstraint ){
78851 VTable *pVTab = 0; /* Non-zero if this is a v-tab with an xRename() */
78907 pVTab = sqlite3GetVTable(db, pTab);
78908 if( pVTab->pVtab->pModule->xRename==0 ){
78909 pVTab = 0;
78923 sqlite3BeginWriteOperation(pParse, pVTab!=0, iDb);
78932 if( pVTab ){
78935 sqlite3VdbeAddOp4(v, OP_VRename, i, 0, 0,(const char*)pVTab, P4_VTAB);
85884 const char *pVTab = (const char *)sqlite3GetVTable(db, pTab);
85886 sqlite3VdbeAddOp4(v, OP_VUpdate, 0, 1, iRowid, pVTab, P4_VTAB);
89114 VTable *pVTab = IsVirtual(pTab) ? sqlite3GetVTable(p->db, pTab) : 0;
89133 if( pOp->opcode==OP_VOpen && pOp->p4.pVtab==pVTab ){
89134 assert( pOp->p4.pVtab!=0 );
89943 const char *pVTab = (const char *)sqlite3GetVTable(db, pTab);
89945 sqlite3VdbeAddOp4(v, OP_VUpdate, 1, pTab->nCol+2, regIns, pVTab, P4_VTAB);
101069 const char *pVTab = (const char*)sqlite3GetVTable(db, pTab);
101114 sqlite3VdbeAddOp4(v, OP_VUpdate, 0, pTab->nCol+2, iReg, pVTab, P4_VTAB);
101580 SQLITE_PRIVATE void sqlite3VtabLock(VTable *pVTab){
101581 pVTab->nRef++;
101591 VTable *pVtab;
101593 for(pVtab=pTab->pVTable; pVtab && pVtab->db!=db; pVtab=pVtab->pNext);
101594 return pVtab;
101601 SQLITE_PRIVATE void sqlite3VtabUnlock(VTable *pVTab){
101602 sqlite3 *db = pVTab->db;
101605 assert( pVTab->nRef>0 );
101608 pVTab->nRef--;
101609 if( pVTab->nRef==0 ){
101610 sqlite3_vtab *p = pVTab->pVtab;
101614 sqlite3DbFree(db, pVTab);
101950 rc = xConstruct(db, pMod->pAux, nArg, azArg, &pVTable->pVtab, &zErr);
101962 }else if( ALWAYS(pVTable->pVtab) ){
101965 pVTable->pVtab->pModule = pMod->pModule;
102078 ** Add the virtual table pVTab to the array sqlite3.aVTrans[]. Space should
102081 static void addToVTrans(sqlite3 *db, VTable *pVTab){
102082 /* Add pVtab to the end of sqlite3.aVTrans */
102083 db->aVTrans[db->nVTrans++] = pVTab;
102084 sqlite3VtabLock(pVTab);
102208 rc = p->pMod->pModule->xDestroy(p->pVtab);
102213 p->pVtab = 0;
102234 VTable *pVTab = db->aVTrans[i];
102235 sqlite3_vtab *p = pVTab->pVtab;
102241 pVTab->iSavepoint = 0;
102242 sqlite3VtabUnlock(pVTab);
102266 sqlite3_vtab *pVtab = aVTrans[i]->pVtab;
102267 if( pVtab && (x = pVtab->pModule->xSync)!=0 ){
102268 rc = x(pVtab);
102270 *pzErrmsg = sqlite3DbStrDup(db, pVtab->zErrMsg);
102271 sqlite3_free(pVtab->zErrMsg);
102297 ** If the virtual table pVtab supports the transaction interface
102304 SQLITE_PRIVATE int sqlite3VtabBegin(sqlite3 *db, VTable *pVTab){
102316 if( !pVTab ){
102319 pModule = pVTab->pVtab->pModule;
102324 /* If pVtab is already in the aVTrans array, return early */
102326 if( db->aVTrans[i]==pVTab ){
102335 rc = pModule->xBegin(pVTab->pVtab);
102337 addToVTrans(db, pVTab);
102367 VTable *pVTab = db->aVTrans[i];
102368 const sqlite3_module *pMod = pVTab->pMod->pModule;
102369 if( pVTab->pVtab && pMod->iVersion>=2 ){
102374 pVTab->iSavepoint = iSavepoint+1;
102383 if( xMethod && pVTab->iSavepoint>iSavepoint ){
102384 rc = xMethod(pVTab->pVtab, iSavepoint);
102412 sqlite3_vtab *pVtab;
102428 pVtab = sqlite3GetVTable(db, pTab)->pVtab;
102429 assert( pVtab!=0 );
102430 assert( pVtab->pModule!=0 );
102431 pMod = (sqlite3_module *)pVtab->pModule;
102442 rc = pMod->xFindFunction(pVtab, nArg, zLowerName, &xFunc, &pArg);
104805 sqlite3_vtab *pVtab = sqlite3GetVTable(pParse->db, pTab)->pVtab;
104811 rc = pVtab->pModule->xBestIndex(pVtab, p);
104817 }else if( !pVtab->zErrMsg ){
104820 sqlite3ErrorMsg(pParse, "%s", pVtab->zErrMsg);
104823 sqlite3_free(pVtab->zErrMsg);
104824 pVtab->zErrMsg = 0;
107555 const char *pVTab = (const char *)sqlite3GetVTable(db, pTab);
107557 sqlite3VdbeAddOp4(v, OP_VOpen, iCur, 0, 0, pVTab, P4_VTAB);
117114 static int fts3DisconnectMethod(sqlite3_vtab *pVtab){
117115 Fts3Table *p = (Fts3Table *)pVtab;
117168 static int fts3DestroyMethod(sqlite3_vtab *pVtab){
117169 Fts3Table *p = (Fts3Table *)pVtab;
117187 return (rc==SQLITE_OK ? fts3DisconnectMethod(pVtab) : rc);
118054 static int fts3BestIndexMethod(sqlite3_vtab *pVTab, sqlite3_index_info *pInfo){
118055 Fts3Table *p = (Fts3Table *)pVTab;
118135 static int fts3OpenMethod(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCsr){
118138 UNUSED_PARAMETER(pVTab);
118158 assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 );
118164 assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 );
118183 Fts3Table *p = (Fts3Table *)pCsr->base.pVtab;
118212 if( rc==SQLITE_OK && ((Fts3Table *)pCsr->base.pVtab)->zContentTbl==0 ){
119409 Fts3Table *p = (Fts3Table *)pCsr->base.pVtab;
119558 assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 );
119587 Fts3Table *p = (Fts3Table *)pCursor->pVtab;
119709 Fts3Table *p = (Fts3Table *)pCursor->pVtab;
119743 assert( ((Fts3Table *)pCsr->base.pVtab)->pSegments==0 );
119753 sqlite3_vtab *pVtab, /* Virtual table handle */
119758 return sqlite3Fts3UpdateMethod(pVtab, nArg, apVal, pRowid);
119765 static int fts3SyncMethod(sqlite3_vtab *pVtab){
119766 int rc = sqlite3Fts3PendingTermsFlush((Fts3Table *)pVtab);
119767 sqlite3Fts3SegmentsClose((Fts3Table *)pVtab);
119774 static int fts3BeginMethod(sqlite3_vtab *pVtab){
119775 TESTONLY( Fts3Table *p = (Fts3Table*)pVtab );
119776 UNUSED_PARAMETER(pVtab);
119790 static int fts3CommitMethod(sqlite3_vtab *pVtab){
119791 TESTONLY( Fts3Table *p = (Fts3Table*)pVtab );
119792 UNUSED_PARAMETER(pVtab);
119805 static int fts3RollbackMethod(sqlite3_vtab *pVtab){
119806 Fts3Table *p = (Fts3Table*)pVtab;
119946 p = (Fts3Table *)pCursor->base.pVtab;
119988 sqlite3_vtab *pVtab, /* Virtual table handle */
120005 UNUSED_PARAMETER(pVtab);
120024 sqlite3_vtab *pVtab, /* Virtual table handle */
120027 Fts3Table *p = (Fts3Table *)pVtab;
120075 static int fts3SavepointMethod(sqlite3_vtab *pVtab, int iSavepoint){
120077 assert( ((Fts3Table *)pVtab)->inTransaction );
120078 assert( ((Fts3Table *)pVtab)->mxSavepoint < iSavepoint );
120079 TESTONLY( ((Fts3Table *)pVtab)->mxSavepoint = iSavepoint );
120080 return fts3SyncMethod(pVtab);
120088 static int fts3ReleaseMethod(sqlite3_vtab *pVtab, int iSavepoint){
120089 TESTONLY( Fts3Table *p = (Fts3Table*)pVtab );
120091 UNUSED_PARAMETER(pVtab);
120103 static int fts3RollbackToMethod(sqlite3_vtab *pVtab, int iSavepoint){
120104 Fts3Table *p = (Fts3Table*)pVtab;
120374 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
120515 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
120619 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
120812 Fts3Table *p = (Fts3Table*)pCsr->base.pVtab;
120865 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
120989 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
121606 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
121715 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
121764 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
121952 static int fts3auxDisconnectMethod(sqlite3_vtab *pVtab){
121953 Fts3auxTable *p = (Fts3auxTable *)pVtab;
121974 sqlite3_vtab *pVTab,
121982 UNUSED_PARAMETER(pVTab);
122029 static int fts3auxOpenMethod(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCsr){
122032 UNUSED_PARAMETER(pVTab);
122046 Fts3Table *pFts3 = ((Fts3auxTable *)pCursor->pVtab)->pFts3Tab;
122079 pVtab)->pFts3Tab;
122179 Fts3Table *pFts3 = ((Fts3auxTable *)pCursor->pVtab)->pFts3Tab;
126509 Fts3Table *p = (Fts3Table*)pCsr->base.pVtab;
128335 Fts3Table *p = (Fts3Table *)pCsr->base.pVtab;
128482 sqlite3_vtab *pVtab, /* FTS3 vtab object */
128487 Fts3Table *p = (Fts3Table *)pVtab;
129247 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
129652 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
129752 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
129824 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
129966 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
130105 Fts3Table *pTab = (Fts3Table *)pCsr->base.pVtab;
130909 static int rtreeDisconnect(sqlite3_vtab *pVtab){
130910 rtreeRelease((Rtree *)pVtab);
130917 static int rtreeDestroy(sqlite3_vtab *pVtab){
130918 Rtree *pRtree = (Rtree *)pVtab;
130944 static int rtreeOpen(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCursor){
130951 pCsr->base.pVtab = pVTab;
130982 Rtree *pRtree = (Rtree *)(cur->pVtab);
131227 Rtree *pRtree = (Rtree *)(pVtabCursor->pVtab);
131272 Rtree *pRtree = (Rtree *)pVtabCursor->pVtab;
131285 Rtree *pRtree = (Rtree *)cur->pVtab;
131380 Rtree *pRtree = (Rtree *)pVtabCursor->pVtab;
132863 sqlite3_vtab *pVtab,
132868 Rtree *pRtree = (Rtree *)pVtab;
132980 static int rtreeRename(sqlite3_vtab *pVtab, const char *zNewName){
132981 Rtree *pRtree = (Rtree *)pVtab;