Struct barrel::backend::Pg
[−]
[src]
pub struct Pg;
Trait Implementations
impl SqlGenerator for Pg
[src]
fn create_table(name: &str) -> String
[src]
Create a new table with a name
fn create_table_if_not_exists(name: &str) -> String
[src]
Create a new table with a name, only if it doesn't exist
fn drop_table(name: &str) -> String
[src]
Drop a table with a name
fn drop_table_if_exists(name: &str) -> String
[src]
Drop a table with a name, only if it exists
fn rename_table(old: &str, new: &str) -> String
[src]
Rename a table from to
fn alter_table(name: &str) -> String
[src]
Modify a table in some other way
fn add_column(ex: bool, name: &str, column: &Column) -> String
[src]
Create a new column with a type
fn drop_column(name: &str) -> String
[src]
Drop an existing column from the table
fn rename_column(old: &str, new: &str) -> String
[src]
Rename an existing column