Closed satyarth12 closed 2 months ago
The changes involve the introduction of several new files and updates to existing ones for managing database migrations and configurations using Alembic and SQLAlchemy. Key additions include migration scripts, a README for Alembic, and a PostgreSQL setup guide. The requirements.txt
file has been completely overhauled to include a new set of dependencies, reflecting a significant shift in the project's dependency management strategy.
File(s) | Change Summary |
---|---|
alembic.ini | Configuration template for Alembic, specifying migration script locations, timezone handling, and logging. |
alembic/README | Added README file providing an overview of Alembic for single-database configuration. |
alembic/env.py | Configuration script for managing migrations with functions for offline and online modes. |
alembic/script.py.mako | Template for Alembic migration scripts, defining upgrade() and downgrade() functions. |
alembic/versions/5501f4d194dd_initial_migration.py | Initial migration script defining tables for trading data. |
db/init.py | Initializes database configuration using environment variables for PostgreSQL and MongoDB. |
postgres.readme.md | Guide for setting up PostgreSQL and managing migrations with Alembic. |
requirements.txt | Completely overhauled with a new set of dependencies for async programming, web frameworks, and database interactions. |
sequenceDiagram
participant User
participant Alembic as Alembic Tool
participant DB_Config as DB Configuration
participant Migration as Migration Script
User->>Alembic: Initiate migration
Alembic->>DB_Config: Load database configuration
DB_Config-->>Alembic: Return db_config
Alembic->>Migration: Generate migration script
Migration-->>Alembic: Return migration script
Alembic->>User: Migration completed
🐰 In the garden where data blooms,
New scripts and settings chase away glooms.
With Alembic's magic, migrations take flight,
Trading tales flourish, both day and night.
PostgreSQL whispers, "Come play with me,"
A rabbit's delight in a tech-savvy spree! 🌼✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Current changes:
repo.py
is responsible for handling all the db operations.repo.py
should be used in the application layer as well.Upcoming changes:
Summary by CodeRabbit
New Features
Documentation
Dependencies
requirements.txt
file with a comprehensive set of new libraries to enhance functionality and performance.