| Catalyst-Controller-DBIC-API documentation | Contained in the Catalyst-Controller-DBIC-API distribution. |
Catalyst::Controller::DBIC::API::Types - Provides shortcut types and coercions for DBIC::API
version 2.003002
Represents the structure of the prefetch argument.
Coerces Str and HashRef.
Represents the structure of the grouped_by argument.
Coerces Str.
Represents the structure of the ordered_by argument
Coerces Str.
Represents the structure of the select argument
Coerces Str.
Represents the structure of the search argument
Coerces HashRef.
Represents the structure of the as argument
Shortcut for DBIx::Class::ResultSet
Shortcut for DBIx::Class::ResultSource
Shortcut for Catalyst::Controller::DBIC::API::JoinBuilder
Shortcut for model objects
This software is copyright (c) 2011 by Luke Saunders, Nicholas Perez, Alexander Hartmaier, et al..
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
| Catalyst-Controller-DBIC-API documentation | Contained in the Catalyst-Controller-DBIC-API distribution. |
package Catalyst::Controller::DBIC::API::Types; BEGIN { $Catalyst::Controller::DBIC::API::Types::VERSION = '2.003002'; } #ABSTRACT: Provides shortcut types and coercions for DBIC::API use warnings; use strict; use MooseX::Types -declare => [qw/OrderedBy GroupedBy Prefetch SelectColumns AsAliases ResultSource ResultSet Model SearchParameters JoinBuilder/]; use MooseX::Types::Moose(':all'); subtype Prefetch, as Maybe[ArrayRef[Str|HashRef]]; coerce Prefetch, from Str, via { [$_] }, from HashRef, via { [$_] }; subtype GroupedBy, as Maybe[ArrayRef[Str]]; coerce GroupedBy, from Str, via { [$_] }; subtype OrderedBy, as Maybe[ArrayRef[Str|HashRef|ScalarRef]]; coerce OrderedBy, from Str, via { [$_] }, from HashRef, via { [$_] }; subtype SelectColumns, as Maybe[ArrayRef[Str|HashRef]]; coerce SelectColumns, from Str, via { [$_] }, from HashRef, via { [$_] }; subtype SearchParameters, as Maybe[ArrayRef[HashRef]]; coerce SearchParameters, from HashRef, via { [$_] }; subtype AsAliases, as Maybe[ArrayRef[Str]]; subtype ResultSet, as class_type('DBIx::Class::ResultSet'); subtype ResultSource, as class_type('DBIx::Class::ResultSource'); subtype JoinBuilder, as class_type('Catalyst::Controller::DBIC::API::JoinBuilder'); subtype Model, as class_type('DBIx::Class'); 1; __END__