pub trait ProxyDatabaseTrait: Debug {
// Required methods
fn query(&self, statement: Statement) -> Result<Vec<ProxyRow>, DbErr>;
fn execute(&self, statement: Statement) -> Result<ProxyExecResult, DbErr>;
// Provided methods
fn begin(&self) { ... }
fn commit(&self) { ... }
fn rollback(&self) { ... }
fn start_rollback(&self) { ... }
fn ping(&self) -> Result<(), DbErr> { ... }
}Available on crate feature
proxy only.Expand description
Defines the ProxyDatabaseTrait to save the functions
Required Methods§
Provided Methods§
Sourcefn start_rollback(&self)
fn start_rollback(&self)
Start rollback a transaction in the [ProxyDatabase]