pub trait DatabaseDriver:
Debug
+ Sync
+ Send
+ 'static {
// Required methods
fn connection(&self) -> DatabaseConnection;
fn configure<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn checkpoint<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Trait for database drivers in the simulation environment.
Required Methods§
Sourcefn connection(&self) -> DatabaseConnection
fn connection(&self) -> DatabaseConnection
Returns the database connection for the driver.