Atsushi Kobayashi > Teng-0.17 > Teng::Plugin::SingleBySQL

Download:
Teng-0.17.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: Teng-0.25

NAME ^

Teng::Plugin::SingleBySQL - (DEPRECATED)single by sql

PROVIDED METHODS ^

$row = $teng->single_by_sqle($sql, [\%bind_values, [$table_name]])

get one record from your SQL.

    my $row = $teng->single_by_sql(q{SELECT id,name FROM user WHERE id = ? LIMIT 1}, [1], 'user');
syntax highlighting: