KiokuDB::Backend::Role::Query::Simple - Simple query api
version 0.57
with qw(KiokuDB::Backend::Role::Query::Simple); sub simple_search { my ( $self, $proto ) = @_; # return all candidate entries in the root set matching fields in $proto return Data::Stream::Bulk::Foo->new(...); }
This role requires a simple_search method to be implemented.
simple_search
The method accepts one argument, the hash of the proto to search for.
This is still loosely defined, but the basic functionality is based on attribute matching:
$kiokudb->search({ name => "Mia" });
will search for objects whose name attribute contains the string Mia.
name
Mia
More complex operations will be defined in the future.
Yuval Kogman <nothingmuch@woobling.org>
This software is copyright (c) 2014 by Yuval Kogman, Infinity Interactive.
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 KiokuDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm KiokuDB
CPAN shell
perl -MCPAN -e shell install KiokuDB
For more information on module installation, please visit the detailed CPAN module installation guide.