| Class-DBI-Plugin-DateTime documentation | view source | Contained in the Class-DBI-Plugin-DateTime distribution. |
Class::DBI::Plugin::DateTime::Pg - Use DateTime With PostgreSQL
package MyCDBI;
use base qw(Class::DBI);
use Class::DBI::Plugin::DateTime::Pg;
__PACKAGE__->set_db(...);
__PACKAGE__->table(...);
__PACKAGE__->has_timestamp('a_timestamp');
__PACKAGE__->has_date('a_date');
__PACKAGE__->has_time('a_time');
Class::DBI::Plugin::DateTime::Pg provides methods to work with DateTime objects in a Class::DBI + PostgreSQL environment.
All methods take the target column name. You may optionally specify a hashref as the second argument. For this module, you may specify the following:
An arrayref of arguments to be passed to the DateTime::Format::Pg object that is used to parse/format the field.
Copyright (c) 2005 Daisuke Maki <dmaki@cpan.org>. All rights reserved.
Development funded by Brazil Ltd <http://b.razil.jp>
| Class-DBI-Plugin-DateTime documentation | view source | Contained in the Class-DBI-Plugin-DateTime distribution. |