pub struct RecoveredSchema {
pub object_type: String,
pub name: String,
pub tbl_name: String,
pub rootpage: Option<i64>,
pub sql: String,
}Expand description
A schema-table (sqlite_master) row recovered from free space — a dropped
or replaced table/index/view/trigger whose definition no longer appears in
the live schema. Recovering it tells the examiner an object existed and its
structure (the CREATE statement), which in turn explains residual data on
the freelist. A finding, not a certainty: it is “consistent with a dropped
<name>” — the examiner draws the conclusion.
Fields§
§object_type: Stringsqlite_master.type — table, index, view, or trigger.
name: Stringsqlite_master.name — the object’s name.
tbl_name: Stringsqlite_master.tbl_name — the table the object belongs to (== name for
a table).
rootpage: Option<i64>sqlite_master.rootpage — the (now-freed) b-tree root, None when the
recovered cell stored it as NULL (views/triggers).
sql: Stringsqlite_master.sql — the recovered CREATE statement.
Trait Implementations§
Source§impl Clone for RecoveredSchema
impl Clone for RecoveredSchema
Source§fn clone(&self) -> RecoveredSchema
fn clone(&self) -> RecoveredSchema
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more