pub struct LiveTableDump {
pub name: String,
pub column_names: Vec<String>,
pub rows: Vec<Row>,
}Expand description
A live user table dumped for export: its name, the column header to present,
and every live row in rowid order. Produced by Database::live_table_rows.
column_names are the table’s real column names parsed from its
CREATE TABLE when available, falling back to generic c0..c{N-1} (sized to
the widest row) when the schema parse was low-confidence — so a header is
always present and never a fabricated guess. rows preserves b-tree order,
which for an integer-rowid table is ascending rowid order.
Fields§
§name: StringTable name from sqlite_master.name.
column_names: Vec<String>Header column names: real names from the schema, or c0..c{N-1}.
rows: Vec<Row>Every live row (rowid + decoded values), in b-tree (rowid) order.
Trait Implementations§
Source§impl Clone for LiveTableDump
impl Clone for LiveTableDump
Source§fn clone(&self) -> LiveTableDump
fn clone(&self) -> LiveTableDump
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 LiveTableDump
impl Debug for LiveTableDump
Source§impl PartialEq for LiveTableDump
impl PartialEq for LiveTableDump
impl StructuralPartialEq for LiveTableDump
Auto Trait Implementations§
impl Freeze for LiveTableDump
impl RefUnwindSafe for LiveTableDump
impl Send for LiveTableDump
impl Sync for LiveTableDump
impl Unpin for LiveTableDump
impl UnsafeUnpin for LiveTableDump
impl UnwindSafe for LiveTableDump
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