Trait sea_orm::ProxyDatabaseTrait
source · pub trait ProxyDatabaseTrait: Send + Sync + 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 ping(&self) -> Result<(), DbErr> { ... }
}
Available on crate feature
proxy
only.Expand description
Defines the ProxyDatabaseTrait to save the functions