Struct barrel::table::Table [−][src]
pub struct Table { pub meta: TableMeta, // some fields omitted }
Fields
meta: TableMeta
Methods
impl Table
[src]
impl Table
pub fn new<S: Into<String>>(name: S) -> Table
[src]
pub fn new<S: Into<String>>(name: S) -> Table
pub fn add_primary<S: Into<String>>(&mut self, name: S) -> &mut Column
[src]
pub fn add_primary<S: Into<String>>(&mut self, name: S) -> &mut Column
pub fn add_column<S: Into<String>>(
&mut self,
name: S,
_type: Type
) -> &mut Column
[src]
pub fn add_column<S: Into<String>>(
&mut self,
name: S,
_type: Type
) -> &mut Column
pub fn drop_column<S: Into<String>>(&mut self, name: S)
[src]
pub fn drop_column<S: Into<String>>(&mut self, name: S)
pub fn rename_column<S: Into<String>>(&mut self, old: S, new: S)
[src]
pub fn rename_column<S: Into<String>>(&mut self, old: S, new: S)
pub fn make<T: SqlGenerator>(&mut self, ex: bool) -> Vec<String>
[src]
pub fn make<T: SqlGenerator>(&mut self, ex: bool) -> Vec<String>
Trait Implementations
impl Debug for Table
[src]
impl Debug for Table
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Table
[src]
impl Clone for Table