Rose::DB::Pg(3pm) | User Contributed Perl Documentation | Rose::DB::Pg(3pm) |
Rose::DB::Pg - PostgreSQL driver class for Rose::DB.
use Rose::DB; Rose::DB->register_db( domain => 'development', type => 'main', driver => 'Pg', database => 'dev_db', host => 'localhost', username => 'devuser', password => 'mysecret', server_time_zone => 'UTC', european_dates => 1, ); Rose::DB->default_domain('development'); Rose::DB->default_type('main'); ... $db = Rose::DB->new; # $db is really a Rose::DB::Pg-derived object ...
Rose::DB blesses objects into a class derived from Rose::DB::Pg when the driver is "pg". This mapping of driver names to class names is configurable. See the documentation for Rose::DB's new() and driver_class() methods for more information.
This class cannot be used directly. You must use Rose::DB and let its new() method return an object blessed into the appropriate class for you, according to its driver_class() mappings.
Only the methods that are new or have different behaviors than those in Rose::DB are documented here. See the Rose::DB documentation for the full list of methods.
This value will be passed to DateTime::Format::Pg as the value of the "european" parameter in the call to the constructor "new()". This DateTime::Format::Pg object is used by Rose::DB::Pg to parse and format date-related column values in methods like parse_date, format_date, etc.
This value will be passed to DateTime::Format::Pg as the value of the "server_tz" parameter in the call to the constructor "new()". This DateTime::Format::Pg object is used by Rose::DB::Pg to parse and format date-related column values in methods like parse_date, format_date, etc.
See the DateTime::TimeZone documentation for acceptable values of TZ.
Returns the value of this attribute in the dbh, if one exists, or the value that will be set when the dbh is next created.
See the DBD::Pg documentation to learn more about this attribute.
If STRING is a DateTime::Duration object, a valid interval keyword (according to validate_interval_keyword), or if it looks like a function call (matches "/^\w+\(.*\)$/") and keyword_function_calls is true, then it is returned unmodified. Otherwise, undef is returned if STRING could not be parsed as a valid "interval" value.
current_date epoch now now() today tomorrow yesterday
The keywords are case sensitive. Any string that looks like a function call (matches "/^\w+\(.*\)$/") is also considered a valid date keyword if keyword_function_calls is true.
-infinity allballs current_date current_time current_time() current_timestamp current_timestamp() epoch infinity localtime localtime() localtimestamp localtimestamp() now now() timeofday() today tomorrow yesterday
The keywords are case sensitive. Any string that looks like a function call (matches "/^\w+\(.*\)$/") is also considered a valid datetime keyword if keyword_function_calls is true.
allballs current_time current_time() localtime localtime() now now() timeofday()
The keywords are case sensitive. Any string that looks like a function call (matches "/^\w+\(.*\)$/") is also considered a valid timestamp keyword if keyword_function_calls is true.
-infinity allballs current_date current_time current_time() current_timestamp current_timestamp() epoch infinity localtime localtime() localtimestamp localtimestamp() now now() timeofday() today tomorrow yesterday
The keywords are case sensitive. Any string that looks like a function call (matches "/^\w+\(.*\)$/") is also considered a valid timestamp keyword if keyword_function_calls is true.
John C. Siracusa (siracusa@gmail.com)
Copyright (c) 2010 by John C. Siracusa. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2023-03-04 | perl v5.36.0 |