- Updated database configuration to switch from SQLite to PostgreSQL, including changes to alembic.ini, Docker Compose, and environment settings. - Refactored application code to utilize PostgreSQL database adapters, ensuring compatibility with the new database structure. - Enhanced API routes and data handling to support the new database, including adjustments in data models and query logic. - Introduced new job processing mechanisms for full synchronization of AMO CRM entities, leveraging FastStream for background tasks. - Improved logging and error handling across the application to facilitate better monitoring and debugging. - Removed obsolete SQLite adapter files and migrations, streamlining the project structure for PostgreSQL integration.
7 lines
260 B
Python
7 lines
260 B
Python
# Adapters package
|
|
|
|
# Re-export commonly used database components for convenience
|
|
from adapters.postgres.database import SessionLocal, get_db, init_db, Base
|
|
from adapters.postgres import models
|
|
|
|
__all__ = ["SessionLocal", "get_db", "init_db", "Base", "models"] |