SQLite
-
class alembic.ddl.sqlite. SQLiteImpl (dialect: Dialect, connection: Optional[Connection], as_sql: bool, transactional_ddl: Optional[bool], output_buffer: Optional[StringIO], context_opts: Dict[str, Any])
Bases: alembic.ddl.impl.DefaultImpl
-
add_constraint (const: Constraint)
-
autogen_column_reflect (inspector: Inspector, table: Table, column_info: Dict[str, Any]) → None
A hook that is attached to the âcolumn_reflectâ event for whena Table is reflected from the database during the autogenerateprocess.
Dialects can elect to modify the information gathered here.
-
cast_for_batch_migrate (existing: Column, existing_transfer: Dict[str, Union[TypeEngine, Cast]], new_type: TypeEngine) → None
-
compare_server_default (inspector_column: Column, metadata_column: Column, rendered_metadata_default: Optional[str], rendered_inspector_default: Optional[str]) → bool
-
drop_constraint (const: Constraint)
-
memo : dict
-
render_ddl_sql_expr (expr: ClauseElement, is_server_default: bool = False, **kw) → str
Render a SQL expression that is typically a server default,index expression, etc.
-
requires_recreate_in_batch (batch_op: BatchOperationsImpl) → bool
Return True if the given
BatchOperationsImpl
would need the table to be recreated and copied in order toproceed.Normally, only returns True on SQLite when operations otherthan add_column are present.
-
transactional_ddl = False
SQLite supports transactional DDL, but pysqlite does not:see: http://bugs.python.org/issue10740
-