pub trait Hook {
// Required methods
fn update(&self, action: Action, db: &str, table: &str, rowid: i64);
fn commit(&self) -> bool;
fn rollback(&self);
}Available on crate feature
sqlsrv only.Expand description
Application callback used to process changes to the database.
Required Methods§
Sourcefn update(&self, action: Action, db: &str, table: &str, rowid: i64)
fn update(&self, action: Action, db: &str, table: &str, rowid: i64)
Called whenever a database change has been made within a transaction.
At the point this method is called the change is not persistent yet.