pub struct ClickhouseAttributes {Show 15 fields
pub hosts: String,
pub database: String,
pub username: String,
pub password: String,
pub table_name: String,
pub default_table_engine_opts: String,
pub default_granularity: i32,
pub default_compression: String,
pub default_index_type: String,
pub max_retry: i32,
pub retry_interval_sec: i32,
pub disable_datetime_precision: Option<bool>,
pub dont_support_rename_column: Option<bool>,
pub dont_support_empty_default_value: Option<bool>,
pub skip_initialize_with_version: Option<bool>,
}Expand description
Configuration for delivering stream batches to a ClickHouse cluster.
Fields§
§hosts: StringComma-separated list of ClickHouse hosts.
database: StringDatabase name.
username: StringUsername used to authenticate.
password: StringPassword used to authenticate.
table_name: StringDestination table for inserted rows.
default_table_engine_opts: StringDefault table engine options applied when a table is created.
default_granularity: i32Default index granularity for created tables.
default_compression: StringDefault compression codec for created tables.
default_index_type: StringDefault secondary index type for created tables.
max_retry: i32Maximum number of retry attempts for a failed write.
retry_interval_sec: i32Seconds to wait between retry attempts.
disable_datetime_precision: Option<bool>Disable datetime precision for older ClickHouse versions that don’t support it.
dont_support_rename_column: Option<bool>Enable when the target ClickHouse server does not support RENAME COLUMN.
dont_support_empty_default_value: Option<bool>Enable when the target ClickHouse server does not support empty default values.
skip_initialize_with_version: Option<bool>Skip writing version metadata during initialization.
Trait Implementations§
Source§impl Clone for ClickhouseAttributes
impl Clone for ClickhouseAttributes
Source§fn clone(&self) -> ClickhouseAttributes
fn clone(&self) -> ClickhouseAttributes
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more