- Add AI code generation requirements to AGENTS.md - Add module-level docstrings to all 46 Python modules - Add detailed Google-style docstrings to all classes and functions - Remove all inline comments following self-documenting code principle - Include Args, Returns, Raises sections in function docstrings - Add Attributes and Examples sections to class docstrings
27 lines
502 B
Python
27 lines
502 B
Python
"""Database infrastructure.
|
|
|
|
This module re-exports database connection utilities and ORM models
|
|
for data persistence.
|
|
"""
|
|
|
|
from app.infrastructure.database.connection import (
|
|
AsyncSessionLocal,
|
|
close_db,
|
|
engine,
|
|
get_session,
|
|
get_session_context,
|
|
init_db,
|
|
)
|
|
from app.infrastructure.database.models import Base, PostORM
|
|
|
|
__all__ = [
|
|
"Base",
|
|
"PostORM",
|
|
"engine",
|
|
"AsyncSessionLocal",
|
|
"get_session",
|
|
"get_session_context",
|
|
"init_db",
|
|
"close_db",
|
|
]
|