[][src]Trait elephantry::Structure

pub trait Structure {
    fn relation() -> &'static str;
fn primary_key() -> &'static [&'static str];
fn columns() -> &'static [&'static str]; }

Trait to reflect relation structure.

Required methods

fn relation() -> &'static str

Get relation name.

fn primary_key() -> &'static [&'static str]

Get the list of column contitutes the primary key.

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

Get the list for columns.

Loading content...

Implementors

Loading content...