SQLiteColumnInfo

Trait SQLiteColumnInfo 

Source
pub trait SQLiteColumnInfo: SQLColumnInfo {
    // Required methods
    fn is_autoincrement(&self) -> bool;
    fn table(&self) -> &dyn SQLiteTableInfo;

    // Provided methods
    fn foreign_key(&self) -> Option<&'static dyn SQLiteColumnInfo> { ... }
    fn as_sqlite_column(&self) -> &dyn SQLiteColumnInfo
       where Self: Sized { ... }
    fn foreign_key_core(&self) -> Option<&'static dyn SQLColumnInfo> { ... }
}

Required Methods§

Provided Methods§

Source

fn foreign_key(&self) -> Option<&'static dyn SQLiteColumnInfo>

Returns the foreign key reference if this column has one.

Source

fn as_sqlite_column(&self) -> &dyn SQLiteColumnInfo
where Self: Sized,

Erased access to the SQLite column info.

Source

fn foreign_key_core(&self) -> Option<&'static dyn SQLColumnInfo>

Core-erased foreign key reference for call sites that only need generic info.

Trait Implementations§

Source§

impl Debug for dyn SQLiteColumnInfo

Source§

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

Formats the value using the given formatter. Read more

Implementations on Foreign Types§

Source§

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

Implementors§