pub struct QueryMetadata {
pub columns: Vec<ColumnInfo>,
pub total_rows: Option<u64>,
pub plan_info: Option<PlanInfo>,
pub performance: PerformanceMetrics,
pub warnings: Vec<String>,
pub access_path: Option<AccessPath>,
}Expand description
Metadata for query results
Fields§
§columns: Vec<ColumnInfo>Column information
total_rows: Option<u64>Total row count (may be different from returned rows due to LIMIT)
plan_info: Option<PlanInfo>Query execution plan information
performance: PerformanceMetricsPerformance metrics
warnings: Vec<String>Warnings generated during execution
access_path: Option<AccessPath>Access path selected by the SSTable-scan step (Issue #960).
Some when a SELECT ran through the modern SelectExecutor (materializing
or streaming); None for surfaces that do not yet report a path (e.g. the
legacy executor and non-SELECT queries). This is the result-attached half
of the access-path signal; the test-accessible probe is
crate::query::access_path::last().
Trait Implementations§
Source§impl Clone for QueryMetadata
impl Clone for QueryMetadata
Source§fn clone(&self) -> QueryMetadata
fn clone(&self) -> QueryMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueryMetadata
impl Debug for QueryMetadata
Source§impl Default for QueryMetadata
impl Default for QueryMetadata
Source§fn default() -> QueryMetadata
fn default() -> QueryMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for QueryMetadata
impl<'de> Deserialize<'de> for QueryMetadata
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for QueryMetadata
impl RefUnwindSafe for QueryMetadata
impl Send for QueryMetadata
impl Sync for QueryMetadata
impl Unpin for QueryMetadata
impl UnsafeUnpin for QueryMetadata
impl UnwindSafe for QueryMetadata
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more