in reply to Database-independent means of creating database?

I am using Class::DBI to represent my database in Perl.
Oh dear.

Why?

Note that Class::DBI does quite the opposite of what most people think it does. It doesn't provide an encapsulation layer for the database. In fact, it exposes tables as classes.

Not that other ORM are any better. See The Vietnam Of Computer Science. Or the short version.

  • Comment on Re: Database-independent means of creating database?

Replies are listed 'Best First'.
Re^2: Database-independent means of creating database?
by Your Mother (Archbishop) on Jan 27, 2011 at 00:35 UTC
    I agree with Ted completely; there is no good solution to the object/relational mapping problem. There are solutions, sure, but they all involve serious, painful tradeoffs.

    What do you see as the serious and painful tradeoffs of ORMs in Perl?