pub trait ClickHouseSession: Send + Sync {
// Required methods
fn execute_query<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 mut CHContext,
connection: &'life2 mut Connection
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn metadata(&self) -> &ClickHouseMetadata;
// Provided methods
fn authenticate<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_username: &'life1 str,
_password: &'life2 [u8],
_client_addr: &'life3 str
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait { ... }
fn get_progress(&self) -> Progress { ... }
fn with_stack_trace(&self) -> bool { ... }
fn dbms_name(&self) -> &str { ... }
fn dbms_version_major(&self) -> u64 { ... }
fn dbms_version_minor(&self) -> u64 { ... }
fn dbms_tcp_protocol_version(&self) -> u64 { ... }
fn timezone(&self) -> &str { ... }
fn server_display_name(&self) -> &str { ... }
fn dbms_version_patch(&self) -> u64 { ... }
}Required Methods§
fn execute_query<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, ctx: &'life1 mut CHContext, connection: &'life2 mut Connection ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
sourcefn metadata(&self) -> &ClickHouseMetadata
fn metadata(&self) -> &ClickHouseMetadata
Get ClickHouse metadata.
Provided Methods§
fn authenticate<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, _username: &'life1 str, _password: &'life2 [u8], _client_addr: &'life3 str ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,
fn get_progress(&self) -> Progress
sourcefn with_stack_trace(&self) -> bool
fn with_stack_trace(&self) -> bool
👎Deprecated: use ClickHouseMetadata::has_stack_trace() instead
sourcefn dbms_version_major(&self) -> u64
fn dbms_version_major(&self) -> u64
👎Deprecated: use ClickHouseMetadata::version() instead
sourcefn dbms_version_minor(&self) -> u64
fn dbms_version_minor(&self) -> u64
👎Deprecated: use ClickHouseMetadata::version() instead
sourcefn dbms_tcp_protocol_version(&self) -> u64
fn dbms_tcp_protocol_version(&self) -> u64
👎Deprecated: use ClickHouseMetadata::tcp_protocol_version() instead
sourcefn server_display_name(&self) -> &str
fn server_display_name(&self) -> &str
👎Deprecated: use ClickHouseMetadata::display_name() instead
sourcefn dbms_version_patch(&self) -> u64
fn dbms_version_patch(&self) -> u64
👎Deprecated: use ClickHouseMetadata::version() instead