DBIx-Struct
view release on metacpan or search on metacpan
lib/DBIx/Struct.pm view on Meta::CPAN
PrintError => 0,
AutoInactiveDestroy => 1,
RaiseError => 0,
};
if ($dsn) {
my ($driver) = $dsn =~ /^dbi:(\w*?)(?:\((.*?)\))?:/i;
if ($driver) {
if ($driver eq 'Pg') {
$connect_attrs->{pg_enable_utf8} = 1;
} elsif ($driver eq 'mysql') {
$connect_attrs->{mysql_enable_utf8} = 1;
} elsif ($driver eq 'SQLite') {
$connect_attrs->{sqlite_unicode} = 1;
}
}
}
if (!@$connector_args) {
@$connector_args = ($dsn, $user, $password, $connect_attrs);
}
$conn = $connector_module->$connector_constructor(@$connector_args)
or error_message {
( run in 0.266 second using v1.01-cache-2.11-cpan-00829025b61 )