Eve::Gateway::PgSql - a base class for PostgreSQL data gateways.
# Creating a subclass package Eve::Gateway::PgSql::Foo; use parent qw(Eve::Gateway::PgSql); # Adapting a stored function sub do_something { my $self = shift; if (not exists $self->{'_do_something'}) { $self->{'_do_something'} = $self->_pgsql->function( name => 'do_something', output_list => [{'result_code' => $self->_pgsql->smallint()}]); } my $row = $self->_do_something->execute(); return $row->{'result_code'}; } 1;
Eve::Gateway::PgSql is a base class for PostgreSQL data gateways. It houses some generic initialization stuff.
pgsql
a Eve::Registry::PgSql instance.
Copyright 2012 Igor Zinovyev.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Eve, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Eve
CPAN shell
perl -MCPAN -e shell install Eve
For more information on module installation, please visit the detailed CPAN module installation guide.