Commit graph

4 commits

Author SHA1 Message Date
40bd07ded3 refactor: enable logging in database handler and improve image/video processing feedback 2025-11-18 18:22:47 +01:00
1ac2d4b3ab Refactor storage handlers to use centralized configuration
- Updated `fs.go` and `minio.go` to replace hardcoded storage paths with values from the new config package.
- Introduced a new `config` package to manage application configuration, including database and storage settings.
- Removed the `models.go` file from `typedefs` as it was no longer needed.
- Added a new `config.go` file to handle loading environment variables and application settings.
- Created a new `types.go` file in `typedefs` to define storage strategies.
- Updated `storage_handler.go` to utilize the new configuration structure.
2025-08-22 12:57:33 +02:00
2725098203 Refactor database handling and queries
- Updated DbHandler to accept configuration parameters instead of using environment variables directly.
- Moved database queries from handler.go to a dedicated queries package for better organization and separation of concerns.
- Implemented error handling in query functions to provide more informative error messages.
- Refactored image handling to utilize the new queries package for database interactions.
- Cleaned up unused code and comments across various files.
- Improved overall code readability and maintainability.
2025-08-22 10:11:07 +02:00
080002f4ae feat: add DbHandler and helpers for database operations with logging and utility functions 2025-08-21 13:54:15 +02:00
Renamed from apps/backend/db_handler.go (Browse further)