| CatalystX-CRUD-ModelAdapter-DBIC documentation | view source | Contained in the CatalystX-CRUD-ModelAdapter-DBIC distribution. |
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 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>
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.
You can find documentation for this module with the perldoc command.
perldoc CatalystX::CRUD::ModelAdapter::DBIC
You can also look for information at:
http://cpanratings.perl.org/d/CatalystX-CRUD-ModelAdapter-DBIC
http://rt.cpan.org/NoAuth/Bugs.html?Dist=CatalystX-CRUD-ModelAdapter-DBIC
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.
| CatalystX-CRUD-ModelAdapter-DBIC documentation | view source | Contained in the CatalystX-CRUD-ModelAdapter-DBIC distribution. |