DBIx-DBFlow-Runtime
view release on metacpan or search on metacpan
Create the database in MySQL (tables, fks, etc)
dbflow_refresh_model --schema MySchema --dbh "DBD:mysql..."
This will create lib/MySchema.pm. Add this code to it:
our $VERSION = 1;
sub admin_connection {
my $schema = __PACKAGE__->connect(
"DBI:mysql:mysql_read_default_file=pathtoadmincreds.cnf;mysql_read_default_group=schema_group",
undef,
undef,
{
AutoCommit => 1,
RaiseError => 1,
mysql_enable_utf8 => 1,
quote_char => '`',
name_sep => '.',
},
);
( run in 0.441 second using v1.01-cache-2.11-cpan-05444aca049 )