ralsei.task.add_columns¶
Module Contents¶
Classes¶
Base class for a task that adds columns to a table |
API¶
- class ralsei.task.add_columns.AddColumnsTask¶
Bases:
ralsei.task.base.TaskImplBase class for a task that adds columns to a table
All you have to do is call
_prepare_columns()from withinralsei.task.TaskImpl.prepare().output,_exists()and_delete()are implemented for you, leaving only theralsei.task.TaskImpl._run()part-
_table : ralsei.types.Table =
None¶
-
_columns : list[ralsei.types.ColumnRendered] =
None¶
-
_add_columns : ralsei.db_actions.AddColumns =
None¶
-
_drop_columns : ralsei.db_actions.DropColumns =
None¶
-
_prepare_columns(table: ralsei.graph.Resolves[ralsei.types.Table], columns: collections.abc.Sequence[ralsei.types.ColumnBase], *, if_not_exists: bool =
False)¶
- _exists(conn: ralsei.connection.ConnectionEnvironment) bool¶
- _delete(conn: ralsei.connection.ConnectionEnvironment)¶
-
_table : ralsei.types.Table =