pub trait Table<C, R>where
C: Connection<R>,
R: Row,{
// Required methods
fn create(&self, conn: &mut C) -> Result<()>;
fn create_if_not_exist(&self, conn: &mut C) -> Result<()>;
fn drop(&self, conn: &mut C) -> Result<()>;
}
Expand description
Trait to manage table - create, check if exists, and drop
Required Methods§
Sourcefn create_if_not_exist(&self, conn: &mut C) -> Result<()>
fn create_if_not_exist(&self, conn: &mut C) -> Result<()>
Create a table if it does not already exist