Trait fire_postgres::row::ToRowStatic

source ·
pub trait ToRowStatic {
    // Required methods
    fn insert_columns() -> &'static str;
    fn insert_values() -> &'static str;
    fn update_columns() -> &'static str;
    fn params_len() -> usize;
    fn params(&self) -> impl ExactSizeIterator<Item = &(dyn ToSql + Sync)>;
}

Required Methods§

source

fn insert_columns() -> &'static str

should return something like “id”, “name”, “email”

source

fn insert_values() -> &'static str

should return something like $1, $2, $3

source

fn update_columns() -> &'static str

should return something like “id” = $1, “name” = $2

source

fn params_len() -> usize

source

fn params(&self) -> impl ExactSizeIterator<Item = &(dyn ToSql + Sync)>

Object Safety§

This trait is not object safe.

Implementors§