pub struct MariaDbContainer { /* private fields */ }Expand description
A single-node MariaDB container.
Implementations§
Source§impl MariaDbContainer
impl MariaDbContainer
Sourcepub fn with_image(image: &str) -> Self
pub fn with_image(image: &str) -> Self
Builds a container from a caller-chosen image.
Sourcepub fn with_username(self, username: &str) -> Self
pub fn with_username(self, username: &str) -> Self
Overrides MARIADB_USER (default test).
Sourcepub fn with_password(self, password: &str) -> Self
pub fn with_password(self, password: &str) -> Self
Overrides MARIADB_PASSWORD (default test).
Sourcepub fn with_database(self, database: &str) -> Self
pub fn with_database(self, database: &str) -> Self
Overrides MARIADB_DATABASE (default test).
Sourcepub async fn start(self) -> Result<MariaDbGuard>
pub async fn start(self) -> Result<MariaDbGuard>
Boots the container.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MariaDbContainer
impl !UnwindSafe for MariaDbContainer
impl Freeze for MariaDbContainer
impl Send for MariaDbContainer
impl Sync for MariaDbContainer
impl Unpin for MariaDbContainer
impl UnsafeUnpin for MariaDbContainer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more