Struct sea_orm::MockDatabaseConnector
source · pub struct MockDatabaseConnector;
Expand description
Defines a database driver for the MockDatabase
Implementations§
source§impl MockDatabaseConnector
impl MockDatabaseConnector
sourcepub fn accepts(string: &str) -> bool
pub fn accepts(string: &str) -> bool
Check if the database URI given and the DatabaseBackend selected are the same
sourcepub async fn connect(string: &str) -> Result<DatabaseConnection, DbErr>
pub async fn connect(string: &str) -> Result<DatabaseConnection, DbErr>
Connect to the MockDatabase