pub struct Pool { /* private fields */ }Expand description
A pool of ClickHouse client connections
Implementations§
Source§impl Pool
impl Pool
Sourcepub async fn new(config: PoolConfig, builder: ClientBuilder) -> Result<Self>
pub async fn new(config: PoolConfig, builder: ClientBuilder) -> Result<Self>
Create a new connection pool with the given configuration and client builder
Sourcepub async fn acquire(&self) -> Result<PooledClient>
pub async fn acquire(&self) -> Result<PooledClient>
Acquire a connection from the pool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pool
impl !RefUnwindSafe for Pool
impl Send for Pool
impl Sync for Pool
impl Unpin for Pool
impl !UnwindSafe for Pool
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