DBIx::DWIW 0.44 reviewDownload
DBIx::DWIW is a Perl module for robust and simple DBI wrapper to Do What I Want (DWIW). SYNOPSIS When used directly: use DBI
DBIx::DWIW is a Perl module for robust and simple DBI wrapper to Do What I Want (DWIW).
When used directly:
my $db = DBIx::DWIW->Connect(DB => $database,
User => $user,
Pass => $password,
Host => $host);
my @records = $db->Array("select * from foo");
When sub-classed for full functionality:
use MyDBI; # class inherits from DBIx::DWIW
my $db = MyDBI->Connect('somedb') or die;
my @records = $db->Hashes("SELECT * FROM foo ORDER BY bar");
NOTE: This module is currently specific to MySQL, but needn't be. We just haven't had a need to talk to any other database server.
DBIx::DWIW was developed (over the course of roughly 1.5 years) in Yahoo! Finance (http://finance.yahoo.com/) to suit our needs. Parts of the API may not make sense and the documentation may be lacking in some areas. We've been using it for so long (in one form or another) that these may not be readily obvious to us, so feel free to point that out. There's a reason the version number is currently < 1.0.
This module was recently extracted from Yahoo-specific code, so things may be a little strange yet while we smooth out any bumps and blemishes left over form that.
DBIx::DWIW is intended to be sub-classed. Doing so gives you all the benefits it can provide and the ability to easily customize some of its features. You can, of course, use it directly if it meets your needs as-is. But you'll be accepting its default behavior in some cases where it may not be wise to do so.
The DBIx::DWIW distribution comes with a sample sub-class in the file examples/MyDBI.pm which illustrates some of what you might want to do in your own class(es).
This module provides three main benefits:
DBIx::DWIW 0.44 search tags