Yichun Zhang (章亦春) > OpenResty-0.5.12 > OpenResty::RestyScript::View

Download:
OpenResty-0.5.12.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

OpenResty::RestyScript::View - RestyScript (for Views) compiler in pure Perl

SYNOPSIS ^

    use OpenResty::RestyScript::View;

    my $restyscript = OpenResty::RestyScript::View->new;
    my $res = $restyscript->parse(
        'select * from Post where $col > $val',
        {
            quote => sub { $dbh->quote(@_) },
            quote_ident => sub { $dbh->quote_identifier(@_) },
        }
    );

DESCRIPTION ^

This compiler class is generated automatically by Parse::Yapp from the grammar file grammar/restyscript-view.yp.

AUTHOR ^

Agent Zhang (agentzh) <agentzh at yahoo dot cn>

SEE ALSO ^

OpenResty::Handler::View, OpenResty.

syntax highlighting: