in reply to DBX offers simplified access to the DBI

What's so hard about DBI that people feel they must develop abstractions? To me, they just make tracking down problems that much harder, which is never a good thing.

rdfield

  • Comment on Re: DBX offers simplified access to the DBI

Replies are listed 'Best First'.
Re^2: DBX offers simplified access to the DBI
by Aristotle (Chancellor) on Feb 19, 2003 at 11:40 UTC

    I agree completely.

    chromatic wrote a nice article in defense of DBI a while ago for Perl.com, which is a useful starting point for any kind of abstraction.

    Then you take another step and do to SQL in Perl what you'd do to HTML in Perl: push it out to templates. And there you go.

    Actually, an added benefit of this approach is that you have total control over the SQL in use; you can hand off your templates to a DBA or whoever and they can tune them for you. That's not something you can usually do with autogenerated SQL.

    Makeshifts last the longest.

Re: Re: DBX offers simplified access to the DBI
by Tomte (Priest) on Feb 19, 2003 at 10:47 UTC

    ++rdfield; DBI is as much an abstraction as I see fit for DB interaction; perlish clean IMHO
    Now there's nothing wrong in encapsulating DB-interaction in Objects, e.g. the way slash does it, for a certain application in a certain context.
    A general abstraction into something 'more easy' is doomed to raise more problems in the long run; at least this is what my experience with java-apis tells me ;-)

    regards,
    tomte