Sqlalchemy batch dommands
Jump to navigation
Jump to search
https://www.youtube.com/watch?v=CxCK1DkikgA
https://alembic.sqlalchemy.org/en/latest/batch.html
with op.batch_alter_table("some_table") as batch_op: batch_op.add_column(Column('foo', Integer)) batch_op.drop_column('bar')