Struct sea_orm::MockDatabase [−][src]
pub struct MockDatabase { /* fields omitted */ }Expand description
Defines a Mock database suitable for testing
Implementations
Instantiate a mock database with a DbBackend to simulate real world SQL databases
Create a database connection
Add the MockExecResults to the exec_results field for Self
Add the MockExecResults to the exec_results field for Self
Trait Implementations
Execute a statement in the MockDatabase
Execute a SQL query in the MockDatabase
Commit a successful transaction atomically into the MockDatabase
fn drain_transaction_log(&mut self) -> Vec<Transaction>ⓘ
fn drain_transaction_log(&mut self) -> Vec<Transaction>ⓘ
Get all logs from a MockDatabase and return a Transaction
Get the backend being used in the MockDatabase
Auto Trait Implementations
impl RefUnwindSafe for MockDatabase
impl Send for MockDatabase
impl Sync for MockDatabase
impl Unpin for MockDatabase
impl UnwindSafe for MockDatabase
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more