ChangeLogHook

Trait ChangeLogHook 

Source
pub trait ChangeLogHook {
    type Database;
    type Table;

    // Required method
    fn changelog(
        &mut self,
        log: Vec<Change<Self::Database, Self::Table>>,
    ) -> bool;
}
Available on crate feature sqlsrv only.
Expand description

Application callback used to process committed changes to the database.

Required Associated Types§

Required Methods§

Source

fn changelog(&mut self, log: Vec<Change<Self::Database, Self::Table>>) -> bool

Changelog callback.

Will be called whenevert a set of actions are being committed. Return true to change the commit to a rollback.

Implementors§