pub struct SQLTableInfo {
pub name: String,
pub schema: Option<String>,
pub columns: Vec<SQLColumnInfo>,
pub indexes: Vec<SQLIndexInfo>,
pub row_count_estimate: Option<u64>,
}Fields§
§name: String§schema: Option<String>§columns: Vec<SQLColumnInfo>§indexes: Vec<SQLIndexInfo>§row_count_estimate: Option<u64>Implementations§
Source§impl SQLTableInfo
impl SQLTableInfo
pub fn new(name: impl Into<String>) -> Self
pub fn primary_key_columns(&self) -> Vec<&SQLColumnInfo>
pub fn nullable_columns(&self) -> Vec<&SQLColumnInfo>
pub fn emit_describe_query(&self) -> String
Trait Implementations§
Source§impl Clone for SQLTableInfo
impl Clone for SQLTableInfo
Source§fn clone(&self) -> SQLTableInfo
fn clone(&self) -> SQLTableInfo
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 SQLTableInfo
impl RefUnwindSafe for SQLTableInfo
impl Send for SQLTableInfo
impl Sync for SQLTableInfo
impl Unpin for SQLTableInfo
impl UnsafeUnpin for SQLTableInfo
impl UnwindSafe for SQLTableInfo
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