perl-DBR CHANGE LOG

1.5 - Released 06/16/2011

1.4 - Released 06/15/2011

1.3 - Released 05/23/2011

1.2 - Released 05/20/2011

use DBR (conf => '/path/to/conf_file.conf', app => 'myapp', logpath => '/path/to/logfile.log');

Then elsewhere:

        use DBR ( app => 'myapp', use_exceptions => 1 ); 
        my $db = dbr_connect('schema-name');
        ...

1.1

my $items = $order->items->where( status => 'active' );

This is infinately chainable, because you may now call ->where on any resultset to get a sub-resultset. In fact, the above example only initiates one query of the items table per chunk of 1,000 order records. This resulted from a major remodel of the relationship code to implement lazy execution at the time of the first ->next, rather than ->where.

        my $resultset = $dbrh->tablename->where(
                                        ( status => 'active' )
                                        OR
                                        (
                                          status  => 'retired',
                                          thingus => GT 1,
                                        )
                                       );

HERE BE DRAGONS