DBIx-Wrapper
view release on metacpan or search on metacpan
compatible with DBI's behavior.
* Added extra (optional) argument \%args to nativeQuery()
* do() method now calls DBIx::Wrapper hooks instead of just
being a pass-through
* option for connect() to specify that DBIx::Wrapper should
not use placeholders in queries.
* selectAll()
* nativeSelectMultiOrOne()
* added more method aliases
* documented method aliases
Version 0.21
* newFromDBI() now returns undef if not passed a DBI object.
* exists() method
* removed POD documentation for the newCommand() method, as it
has been deprecated for a while now.
* tables and fields are now quoted in the resulting SQL query
when calling methods that take Perl datastructures, e.g.,
update()
* added literal() as an alias for command()
Version 0.20
* added support for named placeholders for native* methods,
except for nativeSelectExecLoop
Version 0.19
* fixed delete() to return the number of rows affected instead of 1
* now requires Perl 5.6 or later
* getting/setting attributes now gets/sets the corresponding
attribute in the underlying DBI object, e.g.,
$num_reconnects = $dbh->{auto_reconnects_ok},
$dbh->{mysql_auto_reconnect} = 1, etc.
* attempting to access DBIx::Wrapper's internal data directly
will no longer work -- you really shouldn't be doing that
anyway :). If you need to dump its internal data for
debugging purposes, call the debug_dump() method. It will
return a string containing a dump using Data::Dumper.
* nativeSelectValuesArray()
* selectValueFromHash()
* selectValueFromHashMulti()
* added optional \@cols argument to selectFromHash() and selectFromHashMulti()
* smartUpdate now only queries for one column when checking to
see if a row exists (previously it did "SELECT *")
Version 0.18
* selectFromHashMulti() method
* support for OR in selectFromHash() and selectFromHashMulti()
by passing an array ref
Version 0.17
* connect_one() method
* support for mysql's mysql_connect_timeout parameter
Version 0.16
* disconnect() method
* documented reconnect() method
* update() and smartUpdate() will now ignore (just return a
true value) when called with empty $data
Version 0.15
* Documented callbacks
Version 0.14
* The data_source argument to connect() can now be a hash
* Unknown method calls will be passed to the underlying DBI
object. So now you can make calls like prepare() which
makes it easier integrate DBIx::Wrapper into an existing
software package.
Version 0.13 (tester release)
* Preliminary support for handlers (alpha)
* errstr() method
* Optional db_style parameter in the \%params parameter to the
connect() method.
* Check for db_style values mssql, sybase, asa, and asany to
determine how getLastInsertId() should be implemented.
* Check driver name in the dsn string passed to connect() to
determine how getLastInsertId() should be implemented.
Values checked are sybase and asany. The default behaviour
is for the mysql driver.
* begin_work() method
* rollback() method
Version 0.12
* New optional parameter \%params in the connect() method
* Optional debug and error handlers accepted through the
\%params parameter in the connect() method.
* command($str) method to return a scalar reference needed to
pass to insert(), replace(), etc., to pass literal SQL.
Version 0.11
* $db->update() and $db->nativeQuery() now return the number
of rows affected by the query, if available.
* 'make test' no longer breaks when DBI is not installed.
This was causing ActiveState Perl builds to fail and not be
available on their site.
Version 0.10
my $rv = $dbh->delete($table, \%keys)
my $id = $dbh->getLastInsertId;
my $val = $dbh->nativeSelectValue($query, \@exec_args);
my $rv = $dbh->smartReplace($table, \%data);
my $row = $dbh->selectFromHash($table, \%keys);
( run in 2.090 seconds using v1.01-cache-2.11-cpan-140bd7fdf52 )