github-actions[bot]
GitHub deploy: 1e8abea753fb6cd58482cab5027d5bcbd0a2db2e
831bbaa
raw
history blame contribute delete
216 Bytes
from alembic import op
from sqlalchemy import Inspector
def get_existing_tables():
con = op.get_bind()
inspector = Inspector.from_engine(con)
tables = set(inspector.get_table_names())
return tables