Struct sentry::db::tests_postgres::Database
source · pub struct Database {
pub name: String,
pub pool: Pool,
}
Available on crate feature
test-util
only.Expand description
A Database is used to isolate test runs from each other we need to know the name of the database we’ve created. This will allow us the drop the database when we are recycling the connection
Fields
name: String
The database name that will be created by the pool CREATE DATABASE
This database will be set on configuration level of the underlying connection Pool for tests
pool: Pool
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Database
impl Send for Database
impl Sync for Database
impl Unpin for Database
impl !UnwindSafe for Database
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more