pub struct SchemaObject {
pub kind: ObjectKind,
pub name: String,
pub table_name: String,
pub root_page: Option<u32>,
pub sql: Option<String>,
}Expand description
One row of the schema table.
Fields§
§kind: ObjectKind§name: String§table_name: StringThe table this belongs to. For a table it is its own name; for an index, view or trigger it is what the object is defined over.
root_page: Option<u32>Where this object’s b-tree starts. None for views and triggers, which have no b-tree at all.
sql: Option<String>The statement that created this object. None for indexes SQLite created for a primary key or a unique constraint.
Implementations§
Source§impl SchemaObject
impl SchemaObject
Sourcepub fn is_internal(&self) -> bool
pub fn is_internal(&self) -> bool
Whether this belongs to SQLite’s own bookkeeping rather than to the user’s data.
Trait Implementations§
Source§impl Clone for SchemaObject
impl Clone for SchemaObject
Source§impl Debug for SchemaObject
impl Debug for SchemaObject
Source§impl PartialEq for SchemaObject
impl PartialEq for SchemaObject
impl StructuralPartialEq for SchemaObject
Auto Trait Implementations§
impl Freeze for SchemaObject
impl RefUnwindSafe for SchemaObject
impl Send for SchemaObject
impl Sync for SchemaObject
impl Unpin for SchemaObject
impl UnsafeUnpin for SchemaObject
impl UnwindSafe for SchemaObject
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