AnyEvent-Pg
view release on metacpan or search on metacpan
{
"abstract" : "Query a PostgreSQL database asynchronously",
"author" : [
"Salvador Fandino <sfandino@yahoo.com>"
],
"dynamic_config" : 1,
"generated_by" : "ExtUtils::MakeMaker version 6.98, CPAN::Meta::Converter version 2.142060",
"license" : [
"unknown"
],
"meta-spec" : {
"url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
---
abstract: 'Query a PostgreSQL database asynchronously'
author:
- 'Salvador Fandino <sfandino@yahoo.com>'
build_requires:
ExtUtils::MakeMaker: '0'
configure_requires:
ExtUtils::MakeMaker: '0'
dynamic_config: 1
generated_by: 'ExtUtils::MakeMaker version 6.98, CPAN::Meta::Converter version 2.142060'
license: unknown
meta-spec:
AnyEvent-Pg
===========
Asynchronous access to PosgreSQL databases with AnyEvent.
INSTALLATION
To install this module type the following:
perl Makefile.PL
make
make test
make install
lib/AnyEvent/Pg.pm view on Meta::CPAN
my $query = ${shift()};
delete @{$query}{qw(on_error on_result on_done)};
$query->{canceled} = 1;
}
1;
__END__
=head1 NAME
AnyEvent::Pg - Query a PostgreSQL database asynchronously
=head1 SYNOPSIS
use AnyEvent::Pg;
my $db = AnyEvent::Pg->new("dbname=foo",
on_connect => sub { ... });
$db->push_query(query => 'insert into foo (id, name) values(7, \'seven\')',
on_result => sub { ... },
on_error => sub { ... } );
lib/AnyEvent/Pg.pm view on Meta::CPAN
=head1 DESCRIPTION
*******************************************************************
*** ***
*** NOTE: This is a very early release that may contain lots of ***
*** bugs. The API is not stable and may change between releases ***
*** ***
*******************************************************************
This library allows to query PostgreSQL databases asynchronously. It
is a thin layer on top of L<Pg::PQ> that integrates it inside the
L<AnyEvent> framework.
=head2 API
The following methods are available from the AnyEvent::Pg class:
=over 4
=item $adb = AnyEvent::Pg->new($conninfo, %opts)
lib/AnyEvent/Pg.pm view on Meta::CPAN
Returns the time at which processing for the last query started.
=back
=head1 SEE ALSO
L<Pg::PQ>, L<AnyEvent>, L<AnyEvent::Pg::Pool>.
L<AnyEvent::DBD::Pg> provides non-blocking access to a PostgreSQL
through L<DBD::Pg>, but note that L<DBD::Pg> does not provides a
complete asynchronous interface (for instance, establishing new
connections is always a blocking operation).
L<Protocol::PostgreSQL>: pure Perl implementation of the PostgreSQL
client-server protocol that can be used in non-blocking mode.
=head1 BUGS AND SUPPORT
This is a very early release that may contain lots of bugs.
Send bug reports by email or using the CPAN bug tracker at
( run in 0.301 second using v1.01-cache-2.11-cpan-0d8aa00de5b )