#[non_exhaustive]pub struct Extension {
pub arrow: Option<ArrowOptions>,
pub chunked_send: ChunkedProtocolMode,
pub chunked_recv: ChunkedProtocolMode,
pub fast_mode_size: Option<u8>,
}Expand description
Extra configuration options for ClickHouse.
These options are separated to allow extending the configuration capabilities of a connection
without breaking the core ClientOptions that are unlikely to ever change. For this reason,
Extensions is non_exhaustive so the api can change without breaking existing
implementations.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.arrow: Option<ArrowOptions>Options specific to (de)serializing arrow data.
chunked_send: ChunkedProtocolModeOptions related to server/client protocol send chunking. This may be removed, as it may be defaulted.
chunked_recv: ChunkedProtocolModeOptions related to server/client protocol recv chunking. This may be removed, as it may be defaulted
fast_mode_size: Option<u8>Related to inner_pool, how many ‘inner clients’ to spawn. Currently capped at 4.
Implementations§
Source§impl Extension
Configuration extensions for specialized ClickHouse client behavior.
impl Extension
Configuration extensions for specialized ClickHouse client behavior.
This type provides additional configuration options beyond the standard client settings, including Arrow format options and cloud-specific settings.
pub fn with_arrow(self, options: ArrowOptions) -> Self
pub fn with_set_arrow(self, f: impl Fn(ArrowOptions) -> ArrowOptions) -> Self
pub fn with_chunked_send_mode(self, mode: ChunkedProtocolMode) -> Self
pub fn with_chunked_recv_mode(self, mode: ChunkedProtocolMode) -> Self
pub fn with_fast_mode_size(self, size: u8) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Extension
impl<'de> Deserialize<'de> for Extension
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl StructuralPartialEq for Extension
Auto Trait Implementations§
impl Freeze for Extension
impl RefUnwindSafe for Extension
impl Send for Extension
impl Sync for Extension
impl Unpin for Extension
impl UnwindSafe for Extension
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)