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

Sweet::DatabaseConnection

SYNOPSIS

package My::DatabaseConnection;
use Moose;

extends 'Sweet::DatabaseConnection';

with 'Sweet::Config';

ATTRIBUTES

connection_attributes

You may want to override it in a child class, for example to connect to Oracle, with

sub _build_connection_attributes {
    return {
        PrintError  => 1,
        ora_charset => 'AL32UTF8',
    }
}

datasource

password

username