llm / backend /migrations /util.py
github-actions[bot]
GitHub deploy: bccc6e08ccf3e06607a2c6e3ca5f59455b3ceaaf
a733dcb
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