Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my $connector = DBIx::Connector->new(
- "dbi:mysql:database=".$self->{config}->{db}->{name}.';host='.$self->{config}->{db}->{host}.';port='.$self->{config}->{db}->{port},
- $self->{config}->{db}->{user},
- $self->{config}->{db}->{pass},
- { AutoCommit => 1, }
- );
- $self->attr('dbh' => $connector->dbh);
- $self->helper('db' => sub { return shift->dbh });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement