Crate db_testkit

Source

Re-exports§

pub use backend::Connection;
pub use backend::DatabaseBackend;
pub use backend::DatabasePool;
pub use backends::PostgresBackend;
pub use error::PoolError;
pub use error::Result;
pub use migrations::RunSql;
pub use migrations::SqlSource;
pub use pool::PoolConfig;
pub use template::DatabaseName;
pub use template::DatabaseTemplate;
pub use template::ImmutableDatabase;

Modules§

backend
backends
env
error
macros
migrations
pool
template
tests
util
wrapper

Macros§

with_test_db
Creates a new PostgreSQL test database and executes the provided test function.