Trait TableDef

Source
pub trait TableDef {
    // Required methods
    fn name(&self) -> &'static str;
    fn columns(&self) -> &'static [&'static str];

    // Provided methods
    fn create_table_stmt(&self) -> String { ... }
    fn insert_stmt(&self) -> String { ... }
}

Required Methods§

Source

fn name(&self) -> &'static str

Source

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

Provided Methods§

Implementations on Foreign Types§

Source§

impl TableDef for (&'static str, &'static [&'static str])

Source§

fn name(&self) -> &'static str

Source§

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

Implementors§