SQLTableInfo

Trait SQLTableInfo 

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

    // Provided method
    fn column_named(&self, name: &str) -> Option<&'static dyn SQLColumnInfo> { ... }
}

Required Methods§

Source

fn name(&self) -> &str

Source

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

Source

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

Provided Methods§

Source

fn column_named(&self, name: &str) -> Option<&'static dyn SQLColumnInfo>

Lookup a column by name.

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>

Implementations on Foreign Types§

Source§

impl<T: SQLTableInfo> SQLTableInfo for &'static T

Source§

fn name(&self) -> &str

Source§

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

Source§

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

Implementors§