SQLTableInfo

Trait SQLTableInfo 

Source
pub trait SQLTableInfo:
    Any
    + Send
    + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn columns(&self) -> Box<[&'static dyn SQLColumnInfo]>;

    // Provided method
    fn dependencies(&self) -> Box<[&'static dyn SQLTableInfo]> { ... }
}

Required Methods§

Source

fn name(&self) -> &str

Source

fn columns(&self) -> Box<[&'static dyn SQLColumnInfo]>

Provided Methods§

Source

fn dependencies(&self) -> Box<[&'static dyn SQLTableInfo]>

Returns all tables this table depends on via foreign keys

Trait Implementations§

Source§

impl Debug for dyn SQLTableInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a, V: SQLParam> From<&'static dyn SQLTableInfo> for SQLChunk<'a, V>

Source§

fn from(value: &'static dyn SQLTableInfo) -> Self

Converts to this type from the input type.
Source§

impl<'a, V: SQLParam + 'a> ToSQL<'a, V> for &'static dyn SQLTableInfo

Source§

fn to_sql(&self) -> SQL<'a, V>

Source§

fn alias(&self, alias: &'static str) -> SQL<'a, V>

Implementors§