Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

Detecting changes to the database

You can register for changes to a database using dbc_IObserver and detect adds, updates, deletes and commits. See the Signals section of the OS Services Technology Guide for more information on signals.

dbc_IFactory_Observe(piFactory, “MyApp.db”, &piObserver);
dbc_IObserver_OnCommit(piObserver, piSignal);
dbc_IObserver_OnDelete(tableName, signal, ®Obj);
dbc_IObserver_OnInsert(tableName, signal, ®Obj);
dbc IObserver OnUpdate(tableName signal regObj);