pub struct TableRef {
pub name: &'static str,
pub column_names: &'static [&'static str],
pub schema: Option<&'static str>,
pub qualified_name: &'static str,
pub columns: &'static [ColumnRef],
pub primary_key: Option<PrimaryKeyRef>,
pub foreign_keys: &'static [ForeignKeyRef],
pub constraints: &'static [ConstraintRef],
pub dependency_names: &'static [&'static str],
pub dialect: TableDialect,
}Expand description
Table reference with full schema metadata.
Carries both the SQL rendering fields (name, column_names) and
complete schema metadata (columns, keys, constraints). SQL rendering
code only uses name/column_names and ignores extra fields.
Fields§
§name: &'static str§column_names: &'static [&'static str]§schema: Option<&'static str>§qualified_name: &'static str§columns: &'static [ColumnRef]§primary_key: Option<PrimaryKeyRef>§foreign_keys: &'static [ForeignKeyRef]§constraints: &'static [ConstraintRef]§dependency_names: &'static [&'static str]§dialect: TableDialectImplementations§
Trait Implementations§
impl Copy for TableRef
impl Eq for TableRef
Source§impl From<&TableRef> for TableSqlRef
impl From<&TableRef> for TableSqlRef
Source§impl From<TableRef> for TableSqlRef
impl From<TableRef> for TableSqlRef
impl StructuralPartialEq for TableRef
Auto Trait Implementations§
impl Freeze for TableRef
impl RefUnwindSafe for TableRef
impl Send for TableRef
impl Sync for TableRef
impl Unpin for TableRef
impl UnsafeUnpin for TableRef
impl UnwindSafe for TableRef
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