Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    Querylet::Query 0.323

    Download button

    No screenshots available
    Downloads: 436  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.2/5)
    9 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Ricardo Signes | More programs
    Perl Artistic License / FREE
    July 7th, 2008, 13:16 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Querylet::Query description

    Querylet::Query is a Perl module that renders and performs queries for Querylet.

    Querylet::Query is a Perl module that renders and performs queries for Querylet.

    SYNOPSIS

    use DBI;
    my $dbh = DBI->connect('dbi:Pg:dbname=drinks');

    use Querylet::Query;
    # Why am I using this package? I'm a human, not Querylet!

    my $q = new Querylet::Query;

    $q->set_dbh($dbh);

    $q->set_query("
    SELECT *
    FROM drinks d
    WHERE abv > [% min_abv %]
    AND ? IN (
    SELECT liquor FROM ingredients WHERE i i.drink_id = d.drink_id
    )
    ORDER BY d.name
    ");

    $q->set_query_vars({ min_abv => 25 });

    $q->bind("rum");

    $q->run;

    $q->output_type('html');

    $q->output;

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Querylet query | query renderer | Perl module | Querylet | query | Perl

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM