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§

source

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,

source

fn metadata(&self) -> &ClickHouseMetadata

Get ClickHouse metadata.

Provided Methods§

source

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,

source

fn get_progress(&self) -> Progress

source

fn with_stack_trace(&self) -> bool

👎Deprecated: use ClickHouseMetadata::has_stack_trace() instead
source

fn dbms_name(&self) -> &str

👎Deprecated: use ClickHouseMetadata::name() instead
source

fn dbms_version_major(&self) -> u64

👎Deprecated: use ClickHouseMetadata::version() instead
source

fn dbms_version_minor(&self) -> u64

👎Deprecated: use ClickHouseMetadata::version() instead
source

fn dbms_tcp_protocol_version(&self) -> u64

👎Deprecated: use ClickHouseMetadata::tcp_protocol_version() instead
source

fn timezone(&self) -> &str

👎Deprecated: use ClickHouseMetadata::timezone() instead
source

fn server_display_name(&self) -> &str

👎Deprecated: use ClickHouseMetadata::display_name() instead
source

fn dbms_version_patch(&self) -> u64

👎Deprecated: use ClickHouseMetadata::version() instead

Implementors§