pub struct WorkCounts {
pub writer_holds: usize,
pub commits: usize,
pub snapshot_reads: usize,
pub published_rows: usize,
pub constant_reads: usize,
pub app_read_steps: usize,
pub app_read_statements: usize,
pub app_write_steps: usize,
pub lookup_steps: usize,
}Expand description
Local database work observed at its execution boundaries.
Fields§
§writer_holds: usizeSuccessful acquisitions of the writer connection, including read-only work.
commits: usizeSuccessful durable transaction commits, including unchanged transactions.
snapshot_reads: usizeSnapshot bodies the loader parsed, for loading, verification or file-reference checks.
published_rows: usizeRows whose published state an applied slot kept or put back beside this device’s unsent writes (§6.2).
constant_reads: usizeReads of what a transaction can’t change: the schema version, SQLite’s schema cookie, and synced columns’ and foreign keys’ registered ids.
app_read_steps: usizeSQLite virtual machine steps the app’s statements ran in query and
query_row, in reads, live queries’ runs, writes and migrations.
app_read_statements: usizeThe app’s statements that return rows, run in query and query_row,
one per run.
app_write_steps: usizeSQLite virtual machine steps the app’s statements ran in execute and
execute_batch, triggers’ included, in writes and migrations.
lookup_steps: usizeSteps of coven’s lookups judging whether a write changed rows a live query joins: each asks whether a partner row in its scope holds a changed row’s value (§4).
Trait Implementations§
Source§impl Clone for WorkCounts
impl Clone for WorkCounts
Source§fn clone(&self) -> WorkCounts
fn clone(&self) -> WorkCounts
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WorkCounts
impl Debug for WorkCounts
Source§impl Default for WorkCounts
impl Default for WorkCounts
Source§fn default() -> WorkCounts
fn default() -> WorkCounts
Source§impl PartialEq for WorkCounts
impl PartialEq for WorkCounts
impl Copy for WorkCounts
impl Eq for WorkCounts
impl StructuralPartialEq for WorkCounts
Auto Trait Implementations§
impl Freeze for WorkCounts
impl RefUnwindSafe for WorkCounts
impl Send for WorkCounts
impl Sync for WorkCounts
impl Unpin for WorkCounts
impl UnsafeUnpin for WorkCounts
impl UnwindSafe for WorkCounts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.