"examples/nlp/vscode:/vscode.git/clone" did not exist on "03613e64661de6c8a48a05cc4c3a397793e079ec"
util.py 216 Bytes
Newer Older
1
2
3
4
5
6
7
8
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