toasty-driver-integration-suite 0.5.0

Integration test suite for Toasty database drivers
Documentation
1
2
3
4
5
6
7
8
9
10
11
use toasty_core::driver::Driver;

#[async_trait::async_trait]
pub trait Setup: Send + Sync + 'static {
    /// Return a new instance of the driver
    fn driver(&self) -> Box<dyn Driver>;

    /// Delete the table with the specified name. This is used by the test
    /// runner to cleanup after itself.
    async fn delete_table(&self, name: &str);
}