perl-AnyEvent-DBD-Pg-0.03-alt1.noarch.rpm


Advertisement

Description

perl-AnyEvent-DBD-Pg - AnyEvent interface to DBD::Pg's async interface

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-AnyEvent-DBD-Pg
Package version 0.03
Package release alt1
Package architecture noarch
Package type rpm
Installed size 12.42 KB
Download size 12.42 KB
Official Mirror ftp.altlinux.org
use AnyEvent::DBD::Pg;
my $adb = AnyEvent::DBD::Pg->new('dbi:Pg:dbname=test', user => 'pass', {
pg_enable_utf8 => 1,
pg_server_prepare => 0,
quote_char => '"',
name_sep => ".",
}, debug => 1);
$adb->queue_size( 4 );
$adb->debug( 1 );
$adb->connect;
$adb->selectcol_arrayref("select pg_sleep( 0.1 ), 1", { Columns => [ 1 ] }, sub {
my $rc = shift or return warn;
my $res = shift;
warn "Got <$adb->{qd}> = $rc / @{$res}";
$adb->selectrow_hashref("select data,* from tx limit 2", {}, sub {
my $rc = shift or return warn;
warn "Got $adb->{qd} = $rc [@_]";
});
});
$adb->execute("update tx set data = data;",sub {
my $rc = shift or return warn;
warn "Got exec: $rc";
});
$adb->execute("select from 1",sub {
shift or return warn;
warn "Got $adb->{qd} = @_";
});
$adb->selectrow_array("select pg_sleep( 0.1 ), 2", {}, sub {
shift or return warn;
warn "Got $adb->{qd} = [@_]";
$adb->selectrow_hashref("select * from tx limit 1", {}, sub {
warn "Got $adb->{qd} = [@_]";
$adb->execute("select * from tx", sub {
my $rc = shift or return warn;
my $st = shift;
while(my $row = $st->fetchrow_hashref) { warn "$row->{id}"; }
$st->finish;
exit;
});
});
});
AE::cv->recv;

Alternatives

Package Version Architecture Repository
perl-AnyEvent-DBD-Pg - - -

Requires

Name Value
/usr/share/perl5 -
perl(AE.pm) >= 5.0
perl(DBD/Pg.pm) -
perl(DBI.pm) -
perl(Scalar/Util.pm) -
perl(Time/HiRes.pm) -
perl(common/sense.pm) >= 3.0
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(AnyEvent/DBD/Pg.pm) = 0.030
perl-AnyEvent-DBD-Pg = 0.03-alt1

Download

Type URL
Binary Package perl-AnyEvent-DBD-Pg-0.03-alt1.noarch.rpm
Source Package perl-AnyEvent-DBD-Pg-0.03-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-AnyEvent-DBD-Pg rpm package:
    # sudo apt-get install perl-AnyEvent-DBD-Pg

Files

Path
/usr/share/doc/perl-AnyEvent-DBD-Pg-0.03/Changes
/usr/share/doc/perl-AnyEvent-DBD-Pg-0.03/LICENSE
/usr/share/doc/perl-AnyEvent-DBD-Pg-0.03/README
/usr/share/perl5/AnyEvent/
/usr/share/perl5/AnyEvent/DBD/Pg.pm

See Also

Package Description
perl-AnyEvent-DBI-3.04-alt1.noarch.rpm asynchronous DBI access
perl-AnyEvent-DBI-Abstract-0.01-alt1.noarch.rpm AnyEvent::DBI + SQL::Abstract
perl-AnyEvent-DBI-Abstract-Limit-0.02-alt1.noarch.rpm AnyEvent::DBI + SQL::Abstract::Limit
perl-AnyEvent-DBI-MySQL-2.1.0-alt1.noarch.rpm Asynchronous MySQL queries
perl-AnyEvent-DBus-0.31-alt1_20.noarch.rpm Adapt Net::DBus to AnyEvent
perl-AnyEvent-DNS-Cache-Simple-0.01-alt1.noarch.rpm Simple cache for AnyEvent::DNS
perl-AnyEvent-DNS-EtcHosts-0.0103-alt1.noarch.rpm Use /etc/hosts before DNS
perl-AnyEvent-DNS-Nameserver-1.2-alt1.noarch.rpm AnyEvent::DNS::Nameserver - DNS server class using AnyEvent
perl-AnyEvent-DateTime-Cron-0.08-alt1.noarch.rpm AnyEvent crontab with DateTime::Event::Cron
perl-AnyEvent-Debounce-0.01-alt1.noarch.rpm condense multiple temporally-nearby events into one
perl-AnyEvent-Delay-0.01-alt2.noarch.rpm Manage AnyEvent callbacks and control the flow of events
perl-AnyEvent-Delay-Simple-0.06-alt1.noarch.rpm Manage callbacks and control the flow of events by AnyEvent
perl-AnyEvent-Digest-0.0.5-alt1.noarch.rpm A tiny AnyEvent wrapper for Digest::*
perl-AnyEvent-Digg-Stream-0.05-alt1.noarch.rpm AnyEvent client for the Digg streaming API
perl-AnyEvent-EC2-Tiny-0.002-alt1.noarch.rpm Tiny asynchronous (non-blocking) interface to EC2 using AnyEvent
Advertisement
Advertisement