Lines Matching defs:preupdate

10406 ** ^At most one preupdate hook may be registered at a time on a single
10409 ** ^The preupdate hook is disabled by invoking [sqlite3_preupdate_hook()]
10414 ** ^The preupdate hook only fires for changes to real database tables; the
10415 ** preupdate hook is not invoked for changes to [virtual tables] or to
10418 ** ^The second parameter to the preupdate callback is a pointer to
10419 ** the [database connection] that registered the preupdate hook.
10420 ** ^The third parameter to the preupdate callback is one of the constants
10423 ** ^(The fourth parameter to the preupdate callback is the name of the
10428 ** ^The fifth parameter to the preupdate callback is the name of the
10432 ** parameter passed to the preupdate callback is the initial [rowid] of the
10443 ** provide additional information about a preupdate event. These routines
10444 ** may only be called from within a preupdate callback. Invoking any of
10445 ** these routines from outside of a preupdate callback or with a
10447 ** to the preupdate callback results in undefined and probably undesirable
10458 ** preupdate callbacks; if it is used by an SQLITE_INSERT callback then the
10460 ** will be destroyed when the preupdate callback returns.
10467 ** preupdate callbacks; if it is used by an SQLITE_DELETE callback then the
10469 ** will be destroyed when the preupdate callback returns.
10471 ** ^The [sqlite3_preupdate_depth(D)] interface returns 0 if the preupdate
87809 PreUpdate preupdate;
87814 memset(&preupdate, 0, sizeof(PreUpdate));
87817 preupdate.pPk = sqlite3PrimaryKeyIndex(pTab);
87832 preupdate.v = v;
87833 preupdate.pCsr = pCsr;
87834 preupdate.op = op;
87835 preupdate.iNewReg = iReg;
87836 preupdate.keyinfo.db = db;
87837 preupdate.keyinfo.enc = ENC(db);
87838 preupdate.keyinfo.nKeyField = pTab->nCol;
87839 preupdate.keyinfo.aSortFlags = (u8*)&fakeSortOrder;
87840 preupdate.iKey1 = iKey1;
87841 preupdate.iKey2 = iKey2;
87842 preupdate.pTab = pTab;
87843 preupdate.iBlobWrite = iBlobWrite;
87845 db->pPreUpdate = &preupdate;
87848 sqlite3DbFree(db, preupdate.aRecord);
87849 vdbeFreeUnpacked(db, preupdate.keyinfo.nKeyField+1, preupdate.pUnpacked);
87850 vdbeFreeUnpacked(db, preupdate.keyinfo.nKeyField+1, preupdate.pNewUnpacked);
87851 if( preupdate.aNew ){
87854 sqlite3VdbeMemRelease(&preupdate.aNew[i]);
87856 sqlite3DbNNFreeNN(db, preupdate.aNew);
90360 ** This macro evaluates to true if either the update hook or the preupdate
99672 ** TODO: The preupdate-hook is passed SQLITE_DELETE, even though this