diia-open-source / be-pkg-db

European Union Public License 1.2
4 stars 4 forks source link

Database-related code coupled with HTTP #4

Open tshemsedinov opened 7 months ago

tshemsedinov commented 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.