Open tshemsedinov opened 7 months ago
https://github.com/diia-open-source/be-pkg-db/blob/0ac6f89eb7d1a961ced739c033862527caece65f/src/services/database.ts#L48-L64
Database-related code should not be coupled with HTTP-related codes. This is an architectural question, where is isolation, where is layers? I'd propose to read about "Clean architecture" before starting such an important infrastructure projects.
https://github.com/diia-open-source/be-pkg-db/blob/0ac6f89eb7d1a961ced739c033862527caece65f/src/services/database.ts#L48-L64
Database-related code should not be coupled with HTTP-related codes. This is an architectural question, where is isolation, where is layers? I'd propose to read about "Clean architecture" before starting such an important infrastructure projects.