++ed by:
NQOUNET TOKUHIROM MALLEN MINIMAL KARUPA

11 PAUSE users
7 non-PAUSE users.

cho45 (さとう)
and 32 contributors

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.

NOTE: Unlike Teng#single, this method returns a blank list in list context when no desired records are found.