Well, the db module is "just" a query builder, it allows for a quicker and/or more logic construct of the query, allowing Rapid development.
A ORM does what it say it does: Object-relational Mapper, it maps classes to databases tables and columns, and in this case, even allows for the creation of the scheme itself.
Thats all i know about ORM's cause i think they are nothing but a hype. Plus the fact that it require a lot of workflow changes in order to allow that. I always build the db scheme, then the application.
A ORM allows you to make up the design of the database "as you go", and more dangerous, "As you see fit", which would mean you need to keep a keen eye out for database pollution and data integrity. cause everybody knows that what seems logic in code, isnt logic for the database scheme, and having a ORM decide that for you would be insane.
But maybe i am just a dinosaur.
(feel free to correct me if i'm wrong)
Op dinsdag 22 januari 2013 13:17:10 UTC+1 schreef Leandro Severino het volgende: