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