Spaces:
Runtime error
Runtime error
Download backend/migrations/util.py from olipericles/ChatBotando: direct link, hf CLI and curl.
- Browser
- Download file 216 Bytes
-
https://huggingface.co/spaces/olipericles/ChatBotando/resolve/main/backend/migrations/util.py
- Command line
-
hf download hf://spaces/olipericles/ChatBotando/backend/migrations/util.py
-
curl -L -o util.py https://huggingface.co/spaces/olipericles/ChatBotando/resolve/main/backend/migrations/util.py
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 | |