The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Giddy::Role::DocumentMatcher - Provides query parsing and document matching for Giddy::Collection

VERSION

version 0.012_002

SYNOPSIS

        # used internally

DESCRIPTION

This role provides document matching capabilities to Giddy::Collection and Giddy::Collection::InMemory.

Requires the '_documents' and '_load_document' attributes/methods to be implemented by consuming classes.

METHODS

_match_by_name( $name, \%options )

_match_by_query( [ \%query, \%options ] )

_document_matches( \%doc, \%query )

_attributes_matches( \%doc, $key, $value )

_array_has_eq( $value, \@array )

_array_has_re( $regex, \@array )

_has_adv_que( \%hash )

_value_in( $value, \@array )

AUTHOR

Ido Perlmuter, <ido at ido50.net>

BUGS

Please report any bugs or feature requests to bug-giddy at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Giddy. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

        perldoc Giddy::Role::DocumentMatcher

You can also look for information at:

LICENSE AND COPYRIGHT

Copyright 2011 Ido Perlmuter.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.