NAME
Eidolon::Driver::DB::PostgreSQL - PostgreSQL database driver.
SYNOPSIS
Somewhere in application controller:
my ($r, $db);
$r = Eidolon::Core::Registry->get_instance;
$db = $r->loader->get_object("Eidolon::Driver::DB::PostgreSQL");
$db->call("get_news", 12);
$news = $db->fetch_all;
foreach (@$news)
{
# ...
}
$db->free;
DESCRIPTION
The Eidolon::Driver::DB::PostgreSQL is the PostgreSQL database driver for Eidolon. PostgreSQL versions 8.0+ are supported.
To use this driver you must have DBI and DBD::Pg packages installed.
METHODS
new($dbd, $db, $user, $password, $host, $port, $cfg)
Class constructor. Sets initial class data. Only a wrapper over generic class constructor - see "new($dbd, $db, $user, $password, $host, $port, $cfg)" in Eidolon::Driver::DB for more information.
execute($query, @params)
Inherited from "execute($query, @params)" in Eidolon::Driver::DB.
execute_prepared(@params)
Inherited from "execute_prepared(@params)" in Eidolon::Driver::DB.
fetch()
Inherited from "fetch()" in Eidolon::Driver::DB.
fetch_all()
Inherited from "fetch_all()" in Eidolon::Driver::DB.
free()
Inherited from "free()" in Eidolon::Driver::DB.
call($function, @params)
Implementation of abstract method from "call($function, @params)" in Eidolon::Driver::DB.
SEE ALSO
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
Anton Belousov, <abel@cpan.org>
COPYRIGHT
Copyright (c) 2009, Atma 7, http://www.atma7.com