pub struct PoolManager { /* private fields */ }Implementations§
Source§impl PoolManager
impl PoolManager
pub async fn new( config: Arc<DatalakeConfig>, metrics: Option<SharedRegistrar>, ) -> Self
pub fn get_pool(&self) -> Arc<ClickhouseConnectionPool> ⓘ
pub fn seconds_since_last_recycle(&self) -> u64
pub async fn refill_connection_pool(&self) -> Result<usize, ClickhouseError>
pub async fn recycle_idle_connections( &mut self, max_to_recycle: usize, ) -> Result<usize, ClickhouseError>
pub async fn execute_with_retry( &self, query: &str, ) -> Result<(), ClickhouseError>
pub async fn execute_select_with_retry<T>( &self, query: &str, ) -> Result<Vec<T>, ClickhouseError>
pub fn create_batch_processor<M>( &self, batch_size: usize, max_wait_ms: u64, ) -> BatchSender<M::T>
pub fn create_partition_aware_batch_processor<M>( &self, batch_size: usize, max_wait_ms: u64, max_partitions_per_batch: usize, ) -> BatchSender<M::T>
Trait Implementations§
Source§impl Clone for PoolManager
impl Clone for PoolManager
Source§fn clone(&self) -> PoolManager
fn clone(&self) -> PoolManager
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PoolManager
impl !RefUnwindSafe for PoolManager
impl Send for PoolManager
impl Sync for PoolManager
impl Unpin for PoolManager
impl UnsafeUnpin for PoolManager
impl !UnwindSafe for PoolManager
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