Eve::PgSql - the PostgreSQL factory.
use Eve::PgSql; # Construct a factory instance my $pgsql = Eve::PgSql->new( database => $database, host => $host, port => $port, user => $user, password => $password, schema => $schema); # Create a function instance my $foo = $pgsql->get_function( name => 'foo', input_list => [ {'bar' => $pgsql->get_bigint()}, {'foo' => $pgsql->get_smallint()}], output_list => [ {'baz' => $pgsql->get_text()}, {'bam' => $pgsql->get_timestamp_with_timezome()}]);
Eve::PgSql is a factory providing services to interact with PostgreSQL databases and common dependencies between these services.
database
host
port
user
password
schema
By default all arguments are undef so the database adapter will attempt to use standard PostgreSQL environment variables.
undef
A PostgreSQL connection lazy loader service.
A PostgreSQL stored function prototype service.
name
a stored function name
input_list
an optional list of input parameters, each of which is specified as a structure like
{'parameter_name' => $parameter_type}
where the $parameter_type is a Eve::PgSqlType derivative.
$parameter_type
output_list
an optional list of output parameters specified, just like the input_list argument.
A PostgreSQL bigint type lazy loader service.
A PostgreSQL boolean type lazy loader service.
A PostgreSQL double precision floating point type lazy loader service.
A PostgreSQL double precision array type lazy loader service.
A PostGIS geometry type lazy loader service.
A PostgreSQL integer type lazy loader service.
A PostgreSQL integer array type lazy loader service.
A PostgreSQL interval type lazy loader service.
A PostgreSQL smallint type lazy loader service.
A PostgreSQL text type lazy loader service.
A PostgreSQL timestamp with time zone type lazy loader service.
A PostgreSQL timestamp without time zone type lazy loader service.
A PostgreSQL array type lazy loader service.
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.