[][src]Trait elephantry::Structure

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

Trait to reflect relation structure.

Required methods

pub fn relation() -> &'static str[src]

Get relation name.

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

Get the list of column contitutes the primary key.

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

Get the list for columns.

Loading content...

Implementors

Loading content...