pub struct ClickHouseContainer { /* private fields */ }Expand description
A single-node ClickHouse container.
Implementations§
Source§impl ClickHouseContainer
impl ClickHouseContainer
Sourcepub fn new() -> Self
pub fn new() -> Self
Builds a container from the pinned default image
(clickhouse/clickhouse-server:25.8).
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 CLICKHOUSE_USER (default test).
Sourcepub fn with_password(self, password: &str) -> Self
pub fn with_password(self, password: &str) -> Self
Overrides CLICKHOUSE_PASSWORD (default test).
Sourcepub fn with_database(self, database: &str) -> Self
pub fn with_database(self, database: &str) -> Self
Overrides CLICKHOUSE_DB (default test).
Sourcepub async fn start(self) -> Result<ClickHouseGuard>
pub async fn start(self) -> Result<ClickHouseGuard>
Boots the container.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ClickHouseContainer
impl !UnwindSafe for ClickHouseContainer
impl Freeze for ClickHouseContainer
impl Send for ClickHouseContainer
impl Sync for ClickHouseContainer
impl Unpin for ClickHouseContainer
impl UnsafeUnpin for ClickHouseContainer
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