in reply to Re^3: Why use an OO -> SQL mapper module?
in thread Why use an OO -> SQL mapper module?
If someone doesn't know SQL what are the chances that he will generate non-trivial SQL?What are the chances someone not knowing SQL, and need to do something with SQL actually picks up a book, manual page, or a website and learns something? After all, people aren't born with knowledge how to use ORMs either. I'd say that for people who have already displayed the capability to learn how to use a Perl module, those chances are actually quite high.
Note that the author himself says that Class::DBI "provides a *simple* database to object *mapping* layer"Have you actually used Class::DBI? It doesn't map databases to objects. It maps table rows to objects. And I wouldn't object to the notion that Class::DBI maps tables to classes.
abstraction of database implementationBut that isn't true. Not even for a small part. In its basis, it's "one table", "one class". It's painting the implementation of the database all over your name space. It actually takes a real effort to do worse of an abstraction job than Class::DBI does.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Why use an OO -> SQL mapper module?
by jethro (Monsignor) on Aug 13, 2011 at 00:10 UTC |