BuzzSaw

 view release on metacpan or  search on metacpan

docs/database.html  view on Meta::CPAN

   my $db = BuzzSaw::DB->new( name => 'logdb',
                              user => 'fred',
                              pass => 'letmein' );

   my $schema = $db->schema;

   my @events = $schema->resultset('Event')->search( { hostname => 'foo' } );
</pre>

    <p>More typically you will not want to specify the user
    credentials in the script itself so the better approach is to use
    a configuration file. That can be done like this:</p>

<pre>
   use BuzzSaw::DB;

   my $db = BuzzSaw::DB->new_with_config();

   my $schema = $db->schema;
</pre>



( run in 0.380 second using v1.01-cache-2.11-cpan-4d50c553e7e )