pub struct SnapshotTable {
pub name: String,
pub rootpage: u32,
pub columns: Vec<String>,
pub without_rowid: bool,
}Expand description
One user table as of a CommitSnapshot — its schema parsed from the
snapshot’s OWN materialized page 1, NOT from the live database. A rootpage can
be dropped and reused by a different table across commits, so reading the
schema from the snapshot is the only correct way to interpret its b-trees.
Fields§
§name: StringThe table’s sqlite_master.name.
rootpage: u321-based root page of the table’s b-tree as of this commit.
columns: Vec<String>Parsed column names from the table’s CREATE TABLE, in declared order.
Empty when the schema SQL could not be parsed with confidence.
without_rowid: boolWhether this is a WITHOUT ROWID table (file-format §2.4). Such a table
uses an INDEX b-tree with no rowid key, so the rowid-based snapshot read
does not apply — flagged so a caller never mis-reads it as a rowid table.
Trait Implementations§
Source§impl Clone for SnapshotTable
impl Clone for SnapshotTable
Source§fn clone(&self) -> SnapshotTable
fn clone(&self) -> SnapshotTable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SnapshotTable
impl Debug for SnapshotTable
impl Eq for SnapshotTable
Source§impl PartialEq for SnapshotTable
impl PartialEq for SnapshotTable
Source§fn eq(&self, other: &SnapshotTable) -> bool
fn eq(&self, other: &SnapshotTable) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SnapshotTable
Auto Trait Implementations§
impl Freeze for SnapshotTable
impl RefUnwindSafe for SnapshotTable
impl Send for SnapshotTable
impl Sync for SnapshotTable
impl Unpin for SnapshotTable
impl UnsafeUnpin for SnapshotTable
impl UnwindSafe for SnapshotTable
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