feat(sqlalchemy): add missing file

This commit is contained in:
Jonathan Rohde 2024-06-24 13:54:24 +02:00
parent 8f939cf55b
commit 2fb27adbf6

View File

@ -0,0 +1,9 @@
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