pub struct QuerySummary { /* private fields */ }Expand description
Parsed representation of the X-ClickHouse-Summary HTTP response header.
Provides typed getters for known fields and a generic get
fallback for forward-compatibility with future ClickHouse versions.
All getters return Option<u64>: None if the field is absent or cannot
be parsed. This ensures deserialization never fails, even if ClickHouse
renames, removes, or adds fields.
Note: the summary values may be incomplete unless the query was executed
with wait_end_of_query=1, because ClickHouse sends this header before
the response body and the values reflect progress at that point.
Implementations§
Source§impl QuerySummary
impl QuerySummary
Sourcepub fn get(&self, key: &str) -> Option<&str>
pub fn get(&self, key: &str) -> Option<&str>
Returns the raw string value for the given key, if present.
Use this to access fields that are not yet covered by typed getters, e.g. fields added in newer ClickHouse versions.
pub fn read_rows(&self) -> Option<u64>
pub fn read_bytes(&self) -> Option<u64>
pub fn written_rows(&self) -> Option<u64>
pub fn written_bytes(&self) -> Option<u64>
pub fn total_rows_to_read(&self) -> Option<u64>
pub fn result_rows(&self) -> Option<u64>
pub fn result_bytes(&self) -> Option<u64>
pub fn elapsed_ns(&self) -> Option<u64>
pub fn memory_usage(&self) -> Option<u64>
Trait Implementations§
Source§impl Clone for QuerySummary
impl Clone for QuerySummary
Source§fn clone(&self) -> QuerySummary
fn clone(&self) -> QuerySummary
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more