MySQL

  • class alembic.ddl.mysql. MariaDBImpl (dialect: Dialect, connection: Optional[Connection], as_sql: bool, transactional_ddl: Optional[bool], output_buffer: Optional[StringIO], context_opts: Dict[str, Any])

    Bases: alembic.ddl.mysql.MySQLImpl

  • class alembic.ddl.mysql. MySQLAlterDefault (name: str, column_name: str, default: _ServerDefault, schema: Optional[str] = None)

    Bases: alembic.ddl.base.AlterColumn

  • class alembic.ddl.mysql. MySQLChangeColumn (name: str, column_name: str, schema: Optional[str] = None, newname: Optional[str] = None, type_: Optional[TypeEngine] = None, nullable: Optional[bool] = None, default: Optional[Union[_ServerDefault, Literal[False]]] = False, autoincrement: Optional[bool] = None, comment: Optional[Union[str, Literal[False]]] = False)

    Bases: alembic.ddl.base.AlterColumn

  • class alembic.ddl.mysql. MySQLImpl (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

    • alter_column (table_name: str, column_name: str, nullable: Optional[bool] = None, server_default: Union[_ServerDefault, Literal[False]] = False, name: Optional[str] = None, type_: Optional[TypeEngine] = None, schema: Optional[str] = None, existing_type: Optional[TypeEngine] = None, existing_server_default: Optional[_ServerDefault] = None, existing_nullable: Optional[bool] = None, autoincrement: Optional[bool] = None, existing_autoincrement: Optional[bool] = None, comment: Optional[Union[str, Literal[False]]] = False, existing_comment: Optional[str] = None, **kw: Any) → None

    • compare_server_default (inspector_column, metadata_column, rendered_metadata_default, rendered_inspector_default)

    • correct_for_autogen_constraints (conn_unique_constraints, conn_indexes, metadata_unique_constraints, metadata_indexes)

    • correct_for_autogen_foreignkeys (conn_fks, metadata_fks)

    • drop_constraint (const: Constraint) → None

    • memo : dict

    • transactional_ddl = False

    • type_arg_extract : Sequence[str] = ['character set ([\w\-]+)', 'collate ([\w\-]+)']

    • type_synonyms : Tuple[Set[str], ...] = ({'DECIMAL', 'NUMERIC'}, {'BOOL', 'TINYINT'}, {'LONGTEXT', 'JSON'})

  • class alembic.ddl.mysql. MySQLModifyColumn (name: str, column_name: str, schema: Optional[str] = None, newname: Optional[str] = None, type_: Optional[TypeEngine] = None, nullable: Optional[bool] = None, default: Optional[Union[_ServerDefault, Literal[False]]] = False, autoincrement: Optional[bool] = None, comment: Optional[Union[str, Literal[False]]] = False)

    Bases: alembic.ddl.mysql.MySQLChangeColumn