DBIx-DBFlow

 view release on metacpan or  search on metacpan

README.md  view on Meta::CPAN

    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   => '.',
        },
      );
    }

Now install the DBFlow with

    dbflow_create --schema MySchema

lib/DBIx/DBFlow.pm  view on Meta::CPAN

  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   => '.',
      },
    );
  }

Now install the DBFlow with

  dbflow_create --schema MySchema



( run in 0.319 second using v1.01-cache-2.11-cpan-00829025b61 )