pub struct AnalyzeQueryResult {Show 15 fields
pub warnings: Vec<String>,
pub synced_rows: Option<RowsByQuery>,
pub synced_row_count: f64,
pub start: f64,
pub end: f64,
pub elapsed: Option<f64>,
pub after_permissions: Option<String>,
pub vended_row_counts: Option<RowCountsBySource>,
pub vended_rows: Option<RowsBySource>,
pub sqlite_plans: Option<OrderedMap<Vec<String>>>,
pub read_rows: Option<RowsBySource>,
pub read_row_counts_by_query: Option<RowCountsBySource>,
pub read_row_count: Option<f64>,
pub db_scans_by_query: Option<RowCountsBySource>,
pub join_plans: Option<Vec<PlanDebugEvent>>,
}Expand description
The server’s analysis of a query (AnalyzeQueryResult in
packages/zero-protocol/src/analyze-query-result.ts).
Fields§
§warnings: Vec<String>What the server warns about the query.
synced_rows: Option<RowsByQuery>The rows synced, by table, when asked for.
synced_row_count: f64How many rows were synced.
start: f64When the analysis started, in ms.
end: f64When it ended, in ms.
elapsed: Option<f64>How long it took, in ms.
after_permissions: Option<String>The query after the permissions applied, as ZQL.
vended_row_counts: Option<RowCountsBySource>The rows each source vended, counted.
vended_rows: Option<RowsBySource>The rows each source vended, when asked for.
sqlite_plans: Option<OrderedMap<Vec<String>>>SQLite’s query plans, by query.
read_rows: Option<RowsBySource>The rows read, by source and query.
read_row_counts_by_query: Option<RowCountsBySource>The rows read, counted by source and query.
read_row_count: Option<f64>How many rows were read.
db_scans_by_query: Option<RowCountsBySource>The database scans, counted by source and query.
join_plans: Option<Vec<PlanDebugEvent>>The planner’s debug events, when asked for.
Implementations§
Trait Implementations§
Source§impl Clone for AnalyzeQueryResult
impl Clone for AnalyzeQueryResult
Source§impl Debug for AnalyzeQueryResult
impl Debug for AnalyzeQueryResult
Source§impl Default for AnalyzeQueryResult
impl Default for AnalyzeQueryResult
Source§impl PartialEq for AnalyzeQueryResult
impl PartialEq for AnalyzeQueryResult
impl StructuralPartialEq for AnalyzeQueryResult
Auto Trait Implementations§
impl Forget for AnalyzeQueryResult
impl Freeze for AnalyzeQueryResult
impl Move for AnalyzeQueryResult
impl RefUnwindSafe for AnalyzeQueryResult
impl Send for AnalyzeQueryResult
impl Sync for AnalyzeQueryResult
impl Unpin for AnalyzeQueryResult
impl UnsafeUnpin for AnalyzeQueryResult
impl UnwindSafe for AnalyzeQueryResult
Blanket Implementations§
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