KiokuDB::Backend::Role::Query::Simple(3pm)

KiokuDB::Backend::Role::Query::Simple3pm

Simple query api

Usage

    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(...);
    }

Version

version 0.57

Overview

This role requires a "simple_search" method to be implemented.

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".

More complex operations will be defined in the future.

Releases

6 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7
  2. 8–10
  3. 12–13

Author

Yuval Kogman <[email protected]>

From libkiokudb-perl 0.57-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.