Open ghost opened 10 years ago
Is an API a data access layer ? Or there is another thing called data access layer ? Do you mean an ORM like hibernate but for nodejs ?
Data Access Layer is an Abstraction Layer :
Until there, you may say "Oh, but it is our Model Layer so what for creating a such layer ?"
In fact, a Data Access Layer is really useful for :
For our project, this DAL is not compulsory but it will help us to test easily our functions to query to the database
Okay, I see, at my work we use DAOs (Data Access Objects) to do exactly what you say, so I presume that all these DAO together are creating a DAL... So now I really see the point of a DAL. And we can surely make this. :+1:
Creating an Abstraction Layer between Model and Db ? How ? Usefulnesses ?