Sairam Gaddam wrote:
> The documentation says that the function sqlite3_update_hook() is called
> whenever a row is updated, deleted or inserted
No. It says that this function is called to register a callback
function that is called for these updates.
> And I don't find any definition for this callback routine.
void my_little_callback(void *stuff, int op, const char *db, const char *table,
sqlite_int64 rowid)
{
printf("something was updated\n");
}
int main()
{
...
sqlite3_update_hook(db, my_little_callback, NULL);
...
}
Regards,
Clemens