Spaces:
Sleeping
Sleeping
Download database/__init__.py from Vanshcc/DB_Chatbot: direct link, hf CLI and curl.
- Browser
- Download file 593 Bytes
-
https://huggingface.co/spaces/Vanshcc/DB_Chatbot/resolve/main/database/__init__.py
- Command line
-
hf download hf://spaces/Vanshcc/DB_Chatbot/database/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/Vanshcc/DB_Chatbot/resolve/main/database/__init__.py
593 Bytes
| """ | |
| Database module for the Schema-Agnostic Chatbot. | |
| Provides: | |
| - Database connection management | |
| - Dynamic schema introspection | |
| - Safe query execution | |
| """ | |
| from .connection import DatabaseConnection, get_db, db_connection | |
| from .schema_introspector import ( | |
| SchemaIntrospector, | |
| SchemaInfo, | |
| TableInfo, | |
| ColumnInfo, | |
| get_introspector, | |
| get_schema | |
| ) | |
| __all__ = [ | |
| "DatabaseConnection", | |
| "get_db", | |
| "db_connection", | |
| "SchemaIntrospector", | |
| "SchemaInfo", | |
| "TableInfo", | |
| "ColumnInfo", | |
| "get_introspector", | |
| "get_schema" | |
| ] | |