SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-Mojo-Pg rpm build for : OpenSuSE 13.X. For other distributions click perl-Mojo-Pg.

Name : perl-Mojo-Pg
Version : 3.06 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : 9.1 Date : 2017-06-09 09:34:21
Group : Development/Libraries/Perl Source RPM : perl-Mojo-Pg-3.06-9.1.src.rpm
Size : 0.09 MB
Packager : (none)
Summary : Mojolicious ♥ PostgreSQL
Description :
Mojo::Pg is a tiny wrapper around DBD::Pg that makes at
http://www.postgresql.org a lot of fun to use with the at
http://mojolicious.org real-time web framework.

Database and statement handles are cached automatically, and will be reused
transparently to increase performance. You can handle connection timeouts
gracefully by holding on to them only for short amounts of time.

use Mojolicious::Lite;
use Mojo::Pg;

helper pg => sub { state $pg = Mojo::Pg->new(\'postgresql://postgresAATT/test\') };

get \'/\' => sub {
my $c = shift;
my $db = $c->pg->db;
$c->render(json => $db->query(\'select now() as now\')->hash);
};

app->start;

In this example application, we create a \'pg\' helper to store a Mojo::Pg
object. Our action calls that helper and uses the method Mojo::Pg/\"db\" to
dequeue a Mojo::Pg::Database object from the connection pool. Then we use
the method Mojo::Pg::Database/\"query\" to execute an at
http://www.postgresql.org/docs/current/static/sql.html statement, which
returns a Mojo::Pg::Results object. And finally we call the method
Mojo::Pg::Results/\"hash\" to retrieve the first row as a hash reference.

While all I/O operations are performed blocking, you can wait for long
running queries asynchronously, allowing the Mojo::IOLoop event loop to
perform other tasks in the meantime. Since database connections usually
have a very low latency, this often results in very good performance.

Every database connection can only handle one active query at a time, this
includes asynchronous ones. To perform multiple queries concurrently, you
have to use multiple connections.


$pg->db->query(\'select pg_sleep(5)\' => sub {...});
$pg->db->query(\'select pg_sleep(5)\' => sub {...});

All cached database handles will be reset automatically if a new process
has been forked, this allows multiple processes to share the same Mojo::Pg
object safely.

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/openSUSE_13.2/noarch

Content of RPM  Changelog  Provides Requires

Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server

Provides :
perl(Blog)
perl(Blog::Controller::Posts)
perl(Blog::Model::Posts)
perl(Mojo::Pg)
perl(Mojo::Pg::Database)
perl(Mojo::Pg::Migrations)
perl(Mojo::Pg::PubSub)
perl(Mojo::Pg::Results)
perl(Mojo::Pg::Transaction)
perl-Mojo-Pg

Requires :
rpmlib(CompressedFileNames) <= 3.0.4-1
perl(SQL::Abstract) => 1.81
perl(DBD::Pg) => 3.005001
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsLzma) <= 4.4.6-1
perl(:MODULE_COMPAT_5.20.1)
perl(Mojolicious) => 7.32


Content of RPM :
/usr/lib/perl5/vendor_perl/5.20.1/Mojo
/usr/lib/perl5/vendor_perl/5.20.1/Mojo/Pg
/usr/lib/perl5/vendor_perl/5.20.1/Mojo/Pg.pm
/usr/lib/perl5/vendor_perl/5.20.1/Mojo/Pg/Database.pm
/usr/lib/perl5/vendor_perl/5.20.1/Mojo/Pg/Migrations.pm
/usr/lib/perl5/vendor_perl/5.20.1/Mojo/Pg/PubSub.pm
/usr/lib/perl5/vendor_perl/5.20.1/Mojo/Pg/Results.pm
/usr/lib/perl5/vendor_perl/5.20.1/Mojo/Pg/Transaction.pm
/usr/lib/perl5/vendor_perl/5.20.1/i586-linux-thread-multi
/usr/share/doc/packages/perl-Mojo-Pg
/usr/share/doc/packages/perl-Mojo-Pg/Changes
/usr/share/doc/packages/perl-Mojo-Pg/README.md
/usr/share/doc/packages/perl-Mojo-Pg/examples
/usr/share/doc/packages/perl-Mojo-Pg/examples/blog
/usr/share/doc/packages/perl-Mojo-Pg/examples/blog/blog.conf
/usr/share/doc/packages/perl-Mojo-Pg/examples/blog/lib
/usr/share/doc/packages/perl-Mojo-Pg/examples/blog/lib/Blog
/usr/share/doc/packages/perl-Mojo-Pg/examples/blog/lib/Blog.pm
/usr/share/doc/packages/perl-Mojo-Pg/examples/blog/lib/Blog/Controller
/usr/share/doc/packages/perl-Mojo-Pg/examples/blog/lib/Blog/Controller/Posts.pm
/usr/share/doc/packages/perl-Mojo-Pg/examples/blog/lib/Blog/Model
/usr/share/doc/packages/perl-Mojo-Pg/examples/blog/lib/Blog/Model/Posts.pm
/usr/share/doc/packages/perl-Mojo-Pg/examples/blog/migrations
/usr/share/doc/packages/perl-Mojo-Pg/examples/blog/migrations/blog.sql
/usr/share/doc/packages/perl-Mojo-Pg/examples/blog/script
/usr/share/doc/packages/perl-Mojo-Pg/examples/blog/script/blog
/usr/share/doc/packages/perl-Mojo-Pg/examples/blog/t
/usr/share/doc/packages/perl-Mojo-Pg/examples/blog/t/blog.t
/usr/share/doc/packages/perl-Mojo-Pg/examples/blog/templates
/usr/share/doc/packages/perl-Mojo-Pg/examples/blog/templates/layouts
There is 16 files more in these RPM.

 
ICM
This page is using cookies. Read moreOK, I understand