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§
Sourcefn columns(&self) -> Cow<'static, [&'static dyn SQLColumnInfo]>
fn columns(&self) -> Cow<'static, [&'static dyn SQLColumnInfo]>
Columns referenced by this model. Static models can return a borrowed slice; dynamic models can allocate.