cho45 (さとう) > Teng-0.20 > Teng::Plugin::Lookup

Download:
Teng-0.20.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source   Latest Release: Teng-0.24

NAME ^

Teng::Plugin::Lookup - lookup single row.

NAME ^

    package MyDB;
    use parent qw/Teng/;
    __PACKAGE__->load_plugin('Lookup');

    package main;
    my $db = MyDB->new(...);
    $db->lookup('user' => +{id => 1}); # => get single row

DESCRIPTION ^

This plugin provides fast lookup row .

METHODS ^

$row = $db->lookup($table_name, \%search_condition, [\%attr]);

lookup single row records.

Teng#single is heavy.

syntax highlighting: