Eidolon::Driver::DB::PostgreSQL - PostgreSQL database driver.
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;
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.
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.
Inherited from "execute($query, @params)" in Eidolon::Driver::DB.
Inherited from "execute_prepared(@params)" in Eidolon::Driver::DB.
Inherited from "fetch()" in Eidolon::Driver::DB.
Inherited from "fetch_all()" in Eidolon::Driver::DB.
Inherited from "free()" in Eidolon::Driver::DB.
Implementation of abstract method from "call($function, @params)" in Eidolon::Driver::DB.
Eidolon, Eidolon::Driver::DB
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Anton Belousov, <abel@cpan.org>
Copyright (c) 2009, Atma 7, http://www.atma7.com
To install Eidolon::Driver::DB::PostgreSQL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Eidolon::Driver::DB::PostgreSQL
CPAN shell
perl -MCPAN -e shell install Eidolon::Driver::DB::PostgreSQL
For more information on module installation, please visit the detailed CPAN module installation guide.