Logo
Explore Help
Sign In
vasily/TCPDashboard
1
0
Fork 0
You've already forked TCPDashboard
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
TCPDashboard/database/repositories/__init__.py

15 lines
444 B
Python
Raw Normal View History

Refactor database operations and enhance repository structure - Introduced a modular repository structure by creating separate repository classes for `Bot`, `MarketData`, and `RawTrade`, improving code organization and maintainability. - Updated the `DatabaseOperations` class to utilize the new repository classes, enhancing the abstraction of database interactions. - Refactored the `.env` file to update database connection parameters and add new logging and health monitoring configurations. - Modified the `okx_config.json` to change default timeframes for trading pairs, aligning with updated requirements. - Added comprehensive unit tests for the new repository classes, ensuring robust functionality and reliability. These changes improve the overall architecture of the database layer, making it more scalable and easier to manage.
2025-06-06 21:54:45 +08:00
"""
This package contains all the repository classes for database operations.
"""
from .base_repository import BaseRepository, DatabaseOperationError
from .bot_repository import BotRepository
from .market_data_repository import MarketDataRepository
from .raw_trade_repository import RawTradeRepository
__all__ = [
"BaseRepository",
"DatabaseOperationError",
"BotRepository",
"MarketDataRepository",
"RawTradeRepository",
]
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.5 Page: 25ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API