DBIx::Wrapper::VerySimplewhich provides a very simple (object-oriented) wrapper around DBI.
DBIx::Wrapper::VerySimpleprovides three methods
that between them cover about 98% of the SQL calls I've seen in Perl code over the years:
fetch_all() -run a SQL statement (typically a SELECT statement) and get back an arrayref of hashrefs (one hashref for each result row.)
fetch_hash() -run a SQL statement
Do()- run a non-SELECT statement such as
DBIx::Wrapper::VerySimplewill use bind-variables if you pass them as additional arguments to
DBIx::Wrapper::VerySimplealso provides a
get_args()method and a
get_args()returns the arguments originally passed to
new()so you can re-connect, etc. if need be.
dbh()returns the raw
DBIdatabse handle so you have ready access to all the features of
DBIx::Wrapper::VerySimpleis available on the CPAN: http://search.cpan.org/dist/DBIx-Wrapper-VerySimple/
Technorati tags: CPAN, DBI, Perl