eicnam / Toggle-Play

Android Store Style Web Application, allowing the publication of Android Apps
1 stars 1 forks source link

Business Layer #6

Open ghost opened 10 years ago

ghost commented 10 years ago

Creating an Abstraction Layer between Model and Db ? How ? Usefulnesses ?

blablanumerodeux commented 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 ?

ghost commented 10 years ago

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

blablanumerodeux commented 10 years ago

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: