NAME
DBIx::Meld::Traits::Connector - Melds DBIx::Connector with DBIx::Meld.
DESCRIPTION
This trait provides a connector attribute (which must be a DBIx::Connector object) and proxy methods for each DBIx::Connector method so that the methods may be called directly on the DBIx::Meld object.
TYPES
DBIxConnector
This MooseX::Types type requires that the value be a DBIx::Connector object. If the value is an array ref then it will be coerced in to a DBIx::Connector object by passing it as an array to DBIx::Connector->new().
ATTRIBUTES
connector
use DBIx::Meld;
# Use the same argument as DBI:
my $meld = DBIx::Meld->new(
$dsn,
$user,
$pass,
$attrs, # optional
);
# Or pass a pre-built DBIx::Connector object:
my $meld = DBIx::Meld->new( connector => $connector );
# Several DBIx::Connector methods are proxied:
$meld->txn(sub{ ... });
$meld->run(sub{ ... });
$meld->svp(sub{ ... });
my $dbh = $meld->dbh();
# If you need access to any other DBIx::Connector methods,
# go through the connector() accessor:
if ($meld->connector->connected()) { ... }
This is the connector object. It is required and is of type DBIxConnector.
METHODS
dbh
run
txn
svp
AUTHOR
Aran Clary Deltac <bluefeet@gmail.com>
LICENSE
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.