Spaces:
Paused
Paused
Update app/db/__init__.py
Browse files- app/db/__init__.py +5 -2
app/db/__init__.py
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
-
from .database import
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
__all__ = [
|
| 4 |
'init_db',
|
| 5 |
'get_db',
|
| 6 |
'verify_connection',
|
| 7 |
-
'Base',
|
| 8 |
'engine',
|
| 9 |
'async_session_maker'
|
| 10 |
]
|
|
|
|
| 1 |
+
from .database import get_db, verify_connection, Base, engine, async_session_maker
|
| 2 |
+
|
| 3 |
+
# Make init_db importable directly from the module where it's used
|
| 4 |
+
from .database import init_db
|
| 5 |
|
| 6 |
__all__ = [
|
| 7 |
'init_db',
|
| 8 |
'get_db',
|
| 9 |
'verify_connection',
|
| 10 |
+
'Base',
|
| 11 |
'engine',
|
| 12 |
'async_session_maker'
|
| 13 |
]
|