pub struct QueryStat {
pub exec_count: u64,
pub total_us: u64,
pub max_us: u64,
pub last_seen_us: u64,
pub total_rows: u64,
pub max_rows: u64,
}Fields§
§exec_count: u64§total_us: u64§max_us: u64§last_seen_us: u64§total_rows: u64v7.37.22 (22.9) — cumulative row count produced / affected
across every execution of this normalised template. Matches
PG pg_stat_statements.rows. SELECT counts the result row
count; INSERT/UPDATE/DELETE count affected. Saturating add.
max_rows: u64v7.37.22 (22.9) — peak per-execution row count. Useful for dashboards flagging templates whose worst case is a runaway scan (e.g. a SELECT that usually returns 10 rows but occasionally pulls 10M).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueryStat
impl RefUnwindSafe for QueryStat
impl Send for QueryStat
impl Sync for QueryStat
impl Unpin for QueryStat
impl UnsafeUnpin for QueryStat
impl UnwindSafe for QueryStat
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