DOKK / manpages / debian 10 / libsearch-gin-perl / Search::GIN::Query::Class.3pm.en
Search::GIN::Query::Class(3pm) User Contributed Perl Documentation Search::GIN::Query::Class(3pm)

Search::GIN::Query::Class - Create class-based GIN queries

version 0.11

    use Search::GIN::Query::Class;
    my $query = Search::GIN::Query::Class->new(
        class => 'Person',
    );

Creates a class-based GIN query that can be used to search records in a storage.

This is a ready-to-use query that uses class definitions (specifically "class", "does" and "blessed") to search through the storage.

Creates a new query.

The class of the object you want to find.

    my $query = Search::GIN::Query::Class->new(
        class => 'Person',
    );

A role consumed by the object you want to find.

    my $query = Search::GIN::Query::Class->new(
        does => 'TheMonkey',
    );

The name of the package that the object is blessed into.

    my $query = Search::GIN::Query::Class->new(
        blessed => 'Person',
    );

XXXX XXX'XX (Yuval Kogman) <nothingmuch@woobling.org>

This software is copyright (c) 2008 by XXXX XXX'XX (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.

2016-02-22 perl v5.22.1