Not following dry principle
Opened this issue · 0 comments
officialabdulrehman commented
Why not create a generic data access layer which has all the basic funtions such as crud in it from which you can extend for specific layers
Somethiung like the follwing:
class PostgresDAL{
find()......
}
class UserDAL extends PostgresDAL
const user = new UserDAL ()
user.find()