pub trait AlterTable where
Self: Sized, {
fn rename_schema<'life0, 'life1, 'async_trait>(
self,
table_name: &'life0 str,
new_table_name: &'life1 str
) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn rename_column<'life0, 'life1, 'life2, 'async_trait>(
self,
table_name: &'life0 str,
old_column_name: &'life1 str,
new_column_name: &'life2 str
) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn add_column<'life0, 'life1, 'async_trait>(
self,
table_name: &'life0 str,
column_def: &'life1 ColumnDef
) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn drop_column<'life0, 'life1, 'async_trait>(
self,
table_name: &'life0 str,
column_name: &'life1 str,
if_exists: bool
) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}