ALR/internal/db
Maxim Slipenko 52d3ab7791 refactor: migrate db and config packages to use struct-based API
Removed global variables in favor of instance variables. This makes the code more maintainable and making it easier to write unit tests without relying on global state.

Marked the old functions with global state as obsolete, redirecting them to use a new API based on struct in order to rewrite the code using these functions gradually.
2025-01-14 10:11:17 +03:00
..
db_legacy.go refactor: migrate db and config packages to use struct-based API 2025-01-14 10:11:17 +03:00
db_test.go refactor: migrate db and config packages to use struct-based API 2025-01-14 10:11:17 +03:00
db.go refactor: migrate db and config packages to use struct-based API 2025-01-14 10:11:17 +03:00
json.go refactor: migrate db and config packages to use struct-based API 2025-01-14 10:11:17 +03:00
utils.go refactor: migrate db and config packages to use struct-based API 2025-01-14 10:11:17 +03:00