in reply to RFC: Databases made easy

Great work. It also might be nice to note that you can set the dbh flags as a parameter during the connection. It's clear here, but when you are connecting to multiple databases and have a lot of db handles and statement handles flying around, consolidating the code makes things easier to read :)


Demize

Replies are listed 'Best First'.
Re^2: RFC: Databases made easy
by deMize (Monk) on Mar 23, 2011 at 21:09 UTC
    This brings up the other notion of using connect_cached() instead of connect(), which new users may be unfamiliar with.


    Demize

      /me nods...

      One of the best things I ever did, was to sit down and actually read every bit of the documentation page on the CGI module, and then, every bit of the documentation about the drivers I was using.   This is deep material and there is a lot of it, and I read it through twice, resisting mightily the urge to “scan” (or simply, to let my eyes glaze over and Zzzzzz...).   Grab a triple-shot espresso and do the same.   (Fair warning:   it took several days.)