SQLModel

Trait SQLModel 

Source
pub trait SQLModel<'a, V: SQLParam>: ToSQL<'a, V> {
    // Required methods
    fn columns(&self) -> Cow<'static, [&'static dyn SQLColumnInfo]>;
    fn values(&self) -> SQL<'a, V>;
}

Required Methods§

Source

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

Columns referenced by this model. Static models can return a borrowed slice; dynamic models can allocate.

Source

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

Implementors§