[Catalyst] Catalyst::Model::CDBI::Sweet updates

Christian Hansen ch at ngmedia.com
Sun May 1 02:00:22 CEST 2005


We have made some changes to our sweet Catalyst::Model::CDBI::Sweet.

Sweet is no longer tied to Catalyst so it can now be used as any 
Class::DBI class:

As a normal subclass:

package MyApp::M::CDBI;
use base qw[Catalyst::Model::CDBI::Sweet];

As a Catalyst component:

package MyApp::M::CDBI;
use base qw[Catalyst::Model::CDBI::Sweet Catalyst::Base];


We have added support for empty criteria in search and page:

   MyApp::Model::Article->search( {}, { rows => 30 } );
   MyApp::Model::Article->page( {}, { rows => 30 } );

And a retrieve_all that take attributes as arguments:

   MyApp::Model::Article->retrieve_all( order_by => 'created_on' );
   MyApp::Model::Article->retrieve_all( order_by => 'created_on', rows 
=> 10 );

And better support for Win32 regarding UUID.

Latest release is available at CPAN. 
http://search.cpan.org/dist/Catalyst-Model-CDBI-Sweet/

-- 

Christian Hansen
nGmedia
+46 40 660 17 50




More information about the Catalyst mailing list