pub struct CheckpointProbe {
pub busy: i64,
pub log_frames: i64,
pub checkpointed_frames: i64,
}Expand description
Raw PRAGMA wal_checkpoint(PASSIVE) return row.
SQLite returns three columns: busy (1 when the checkpoint could not
obtain the checkpoint lock or read the WAL-index header), log (frames
currently in the WAL), and checkpointed (frames moved into the database
by THIS call). The one-row backfill gap is log - checkpointed; that
difference alone does not establish a reader pin.
Fields§
§busy: i64§log_frames: i64§checkpointed_frames: i64Implementations§
Source§impl CheckpointProbe
impl CheckpointProbe
Sourcepub fn backfill_gap_frames(&self) -> i64
pub fn backfill_gap_frames(&self) -> i64
Frames still awaiting backfill in this row. Negative frame counts
(an in-memory or non-WAL database reports -1) return 0. Even when
busy, populated frame counts describe only a gap, never a reader pin.
Trait Implementations§
Source§impl Clone for CheckpointProbe
impl Clone for CheckpointProbe
impl Copy for CheckpointProbe
Source§impl Debug for CheckpointProbe
impl Debug for CheckpointProbe
impl Eq for CheckpointProbe
Source§impl PartialEq for CheckpointProbe
impl PartialEq for CheckpointProbe
Source§impl Serialize for CheckpointProbe
impl Serialize for CheckpointProbe
impl StructuralPartialEq for CheckpointProbe
Auto Trait Implementations§
impl Freeze for CheckpointProbe
impl RefUnwindSafe for CheckpointProbe
impl Send for CheckpointProbe
impl Sync for CheckpointProbe
impl Unpin for CheckpointProbe
impl UnsafeUnpin for CheckpointProbe
impl UnwindSafe for CheckpointProbe
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
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§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
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more