pub struct BoundedDatabaseValidationStats {
pub structural: BoundedDatabaseStructuralStats,
pub table_rows_checked: u64,
pub check_constraint_evaluations: u64,
pub foreign_key_constraints_checked: u64,
pub foreign_key_child_rows_checked: u64,
pub foreign_key_parent_probes: u64,
pub index_entries_checked: u64,
pub index_point_probes: u64,
}Expand description
Semantic proof counters for a bounded whole-image validation.
Note the shape: this contains the structural proof rather than sitting
beside it. A semantic validation is a structural validation plus row, index
and foreign-key concordance over the same pinned snapshot, so a caller reads
stats.structural.* and stats.table_rows_checked off one value. That
containment is also why a structural-only proof can never be substituted
here: it has no rows, probes, or constraint counts to report.
Deliberately not Default: a zero-valued proof is indistinguishable from a
real validation of an empty image, so there is no such thing as a default
one. Stats exist only as the return value of a completed validation.
Fields§
§structural: BoundedDatabaseStructuralStatsExact structural ownership proof for the same pinned image.
table_rows_checked: u64Ordinary ROWID table rows recomputed for index concordance.
check_constraint_evaluations: u64Persisted CHECK expressions evaluated against inflated table rows.
foreign_key_constraints_checked: u64Declared foreign-key constraints fully checked in the pinned snapshot.
foreign_key_child_rows_checked: u64Child rows streamed while checking declared foreign keys.
foreign_key_parent_probes: u64Direct parent ROWID or UNIQUE-index probes made for non-NULL child keys.
index_entries_checked: u64Persisted index entries scanned for ordering, uniqueness, and counts.
index_point_probes: u64Exact full-key index probes made from recomputed table rows.
Trait Implementations§
Source§impl Clone for BoundedDatabaseValidationStats
impl Clone for BoundedDatabaseValidationStats
Source§fn clone(&self) -> BoundedDatabaseValidationStats
fn clone(&self) -> BoundedDatabaseValidationStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for BoundedDatabaseValidationStats
impl Eq for BoundedDatabaseValidationStats
impl StructuralPartialEq for BoundedDatabaseValidationStats
Auto Trait Implementations§
impl Freeze for BoundedDatabaseValidationStats
impl RefUnwindSafe for BoundedDatabaseValidationStats
impl Send for BoundedDatabaseValidationStats
impl Sync for BoundedDatabaseValidationStats
impl Unpin for BoundedDatabaseValidationStats
impl UnsafeUnpin for BoundedDatabaseValidationStats
impl UnwindSafe for BoundedDatabaseValidationStats
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.