pub struct TableSchema {
pub table_type: String,
pub name: String,
pub tbl_name: String,
pub rootpage: u32,
pub sql: String,
}Expand description
SQLite 表结构信息
Fields§
§table_type: String§name: String§tbl_name: String§rootpage: u32§sql: StringImplementations§
Source§impl TableSchema
impl TableSchema
Sourcepub fn get_columns(&self) -> Vec<String>
pub fn get_columns(&self) -> Vec<String>
从 SQL 中解析列名 (极简实现)
Trait Implementations§
Source§impl Clone for TableSchema
impl Clone for TableSchema
Source§fn clone(&self) -> TableSchema
fn clone(&self) -> TableSchema
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TableSchema
impl RefUnwindSafe for TableSchema
impl Send for TableSchema
impl Sync for TableSchema
impl Unpin for TableSchema
impl UnwindSafe for TableSchema
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