CatalystX::CRUD::ModelAdapter::DBIC - CRUD for Catalyst::Model::DBIC::Schema
# create an adapter class (NOTE not in ::Model namespace) package MyApp::MyDBICAdapter; use strict; use base qw( CatalystX::CRUD::ModelAdapter::DBIC ); 1; # your main DBIC::Schema model package MyApp::Model::MyDBIC; use strict; use base qw( Catalyst::Model::DBIC::Schema ); 1;
CatalystX::CRUD::ModelAdapter::DBIC implements the CatalystX::CRUD::ModelAdapter API for DBIx::Class.
Overrides base method to initialize treats_like_int, ne_sign and use_ilike values.
Implement required method. Returns empty new_result() object from resultset() of moniker.
Implements required method. Returns new_object() matching args. args is passed to the find() method of the resultset() for moniker. If args is not passed, fetch() acts the same as calling new_object().
Implements required method. Returns array or array ref, based on calling context, for a search() in resultset() for args.
Implements required method. Returns iterator for a search() in resultset() for args.
Implements required method. Returns count() in resultset() for args.
Returns an array ref of query data based on request params in context, using param names that match field_names.
Override method in CatalystX::CRUD::Model::Utils to mimic ACCEPT_CONTEXT by setting context in $self.
Otherwise, acts just like CatalystX::CRUD::Model::Utils->make_sql_query().
Implements required method. Returns array ref of objects related to obj via relationship. relationship should be a method name callable on obj.
Like search_related() but returns an iterator.
Like search_related() but returns an integer.
Implements optional method as defined by core API. rel_name should be a method name callable by obj.
Calls insert() on dbic_object.
Calls find() on dbic_object.
Calls update() on dbic_object.
Calls delete() on dbic_object.
Peter Karman, <karman at cpan.org>
<karman at cpan.org>
Please report any bugs or feature requests to bug-catalystx-crud-modeladapter-dbic at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CatalystX-CRUD-ModelAdapter-DBIC. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-catalystx-crud-modeladapter-dbic at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc CatalystX::CRUD::ModelAdapter::DBIC
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/CatalystX-CRUD-ModelAdapter-DBIC
CPAN Ratings
http://cpanratings.perl.org/d/CatalystX-CRUD-ModelAdapter-DBIC
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=CatalystX-CRUD-ModelAdapter-DBIC
Search CPAN
http://search.cpan.org/dist/CatalystX-CRUD-ModelAdapter-DBIC
Copyright 2008 Peter Karman, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install CatalystX::CRUD::ModelAdapter::DBIC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CatalystX::CRUD::ModelAdapter::DBIC
CPAN shell
perl -MCPAN -e shell install CatalystX::CRUD::ModelAdapter::DBIC
For more information on module installation, please visit the detailed CPAN module installation guide.