Florian Ragwitz > KiokuDB-0.49 > KiokuDB::Backend::Role::Query

Download:
KiokuDB-0.49.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  3
Open  2
View/Report Bugs
Source   Latest Release: KiokuDB-0.57

NAME ^

KiokuDB::Backend::Role::Query - Backend specific query API

SYNOPSIS ^

    with qw(KiokuDB::Backend::Role::Query);

    sub search {
        my ( $self, @args ) = @_;

        # return all entries in the root set matching @args (backend specific)
        return Data::Stream::Bulk::Foo->new(...);
    }

DESCRIPTION ^

This role is for backend specific searching. Anything that is not KiokuDB::Backend::Role::Query::Simple is a backend specific search, be it a Search::GIN::Query, or something else.

The backend is expected to interpret the search arguments which are passed through from "search" in KiokuDB as is, and return a Data::Stream::Bulk of matching entries.

syntax highlighting: