in reply to Re: Why use an OO -> SQL mapper module?
in thread Why use an OO -> SQL mapper module?
One advantage immediately comes to (my) mind: You don't neccesarily need to know SQLHmmm. There's no reason not knowing SQL means you have to use an OO mapper. Furthermore, taking Class::DBI as an example, it only generates basic SQL for you. Anything a little bit non-trivial, you need to come up with yourself.
Class::DBI mentions two further advantages in its Introduction sectionEh, the "let's reinvent the wheel" section when it comes to triggers and such? You call that an advantage?
I find that Class::DBI doesn't abstract. Quite the opposite. By mapping tables to classes, it exposes the structure of your database to your application.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Why use an OO -> SQL mapper module?
by jethro (Monsignor) on Aug 12, 2011 at 09:18 UTC | |
by JavaFan (Canon) on Aug 12, 2011 at 17:57 UTC | |
by jethro (Monsignor) on Aug 13, 2011 at 00:10 UTC |