http://www.perlmonks.org?node_id=400023


in reply to Rolling my own database abstraction

Perhaps you want the "Lazy" version of Class::DBI - DBIx::LazyMethod. Looks about the shortest possible code to achieve OO generic database access.

Hope this helps. Not tried this module personally.

Cheers,

-- Dave :-)


$q=[split+qr,,,q,~swmi,.$,],+s.$.Em~w^,,.,s,.,$&&$$q[pos],eg,print
  • Comment on Re: Rolling my own database abstraction

Replies are listed 'Best First'.
Re^2: Rolling my own database abstraction
by blokhead (Monsignor) on Oct 18, 2004 at 05:40 UTC
    shortest possible code to achieve OO generic database access
    Take a look at Class::Tables. Just add two lines of code. No datastructure describing your schema. Now that's lazy ;)

    This module was born because I got sick of talking about my schema twice: once to the database and once to the database persistence layer. Now I can write simple database-driven apps really fast.

    blokhead

Re^2: Rolling my own database abstraction
by stonecolddevin (Parson) on Oct 18, 2004 at 01:42 UTC
    Oooo, that looks fuN!!!
    Short, sweet and simple.

    Thanks, I'll definitely check it out.
    meh.