Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Perl Modules

    Queue::Q4Pg::Lite 0.03

    Download button

    No screenshots available
    Downloads: 176  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    FUJIWARA Shunichiro | More programs
    Perl Artistic License / FREE
    May 31st, 2010, 15:59 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Queue::Q4Pg::Lite description

    Simple message queue using PostgreSQL

    Queue::Q4Pg::Lite is a Perl module that offers a simple message queue using PostgreSQL, which supports pg_advisory_lock (version 8.2 or later).

    This algorithms was invented by http://d.hatena.ne.jp/n_shuyo/20090415/mq .

    Many codes copied from Queue::Q4M.

    SYNOPSIS

     use Queue::Q4Pg::Lite;

     my $q = Queue::Q4Pg::Lite- >connect(
     connect_info = > [
     'dbi:Pg:dbname=mydb',
     $username,
     $password
     ],
     );

     for (1..10) {
     $q- >insert($table, \%fieldvals);
     }

     while ($q- >next($table)) {
     my $cols = $q- >fetch_hashref()
     print "col1 = $cols- >{col1}, col2 = $cols- >{col2}, col3 = $cols- >{col3}\n";
     $q- >ack;
     }

     $q- >disconnect;

     # Table schema requires id column.
     CREATE TABLE mq ( id SERIAL PRIMARY KEY, message TEXT );



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    message queue | Perl module | PostgreSQL | message | queue



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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