The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Garivini::DB - Dumb utility for managing DB connections

SYNOPSIS

my $db = Garivini::DB->new(dbs => { 1 => { id => 1, dsn =>
    'DBI:mysql:job:host=127.0.0.1', user => 'job',
    pass => 'job' } });

my ($dbh, $id) = $db->get_dbh();
[... execute ... ]

my ($ret, $dbh, $dbid) = $db->do(1, "SELECT foo FROM bar");

DESCRIPTION

Dumb little utility for Garivini::Client to use for selecting databases. Users implementing ::Client in other languages should mimic this library's selection behavior.