Search::Query::Dialect::DBIxClass - Search::Query dialect for simple DBIx::Class query generation
version 0.005
use Test::DBIx::Class::Example::Schema; use Search::Query; my $schema = Test::DBIx::Class::Example::Schema->connect(); my $query = Search::Query->parser( dialect => 'DBIxClass', default_field => [qw( name description )], )->parse('foo bar -baz'); my $rs = $schema->resultset('Foo')->search($query->as_dbic_query);
Search::Query::Dialect::DBIxClass extends Search::Query::Dialect::Native by an as_dbic_query method that returns a hashref that can be passed to "search" in DBIx::Class::ResultSet.
Overrides base method and sets DBIx::Class-appropriate defaults. It adds '!#' to the op_regex which is the 'not in list of values' operator.
Returns the query as hashref that can be passed to L<DBIx::Class::ResultSet/search>.
Alexander Hartmaier <abraxxa@cpan.org>
This software is copyright (c) 2014 by Alexander Hartmaier.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Search::Query::Dialect::DBIxClass, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Search::Query::Dialect::DBIxClass
CPAN shell
perl -MCPAN -e shell install Search::Query::Dialect::DBIxClass
For more information on module installation, please visit the detailed CPAN module installation guide.