.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "DBIx::SearchBuilder::Handle::Pg 3pm" .TH DBIx::SearchBuilder::Handle::Pg 3pm 2024-01-27 "perl v5.38.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME .Vb 1 \& DBIx::SearchBuilder::Handle::Pg \- A Postgres specific Handle object .Ve .SH SYNOPSIS .IX Header "SYNOPSIS" .SH DESCRIPTION .IX Header "DESCRIPTION" This module provides a subclass of DBIx::SearchBuilder::Handle that compensates for some of the idiosyncrasies of Postgres. .SH METHODS .IX Header "METHODS" .SS Connect .IX Subsection "Connect" Connect takes a hashref and passes it off to SUPER::Connect; Forces the timezone to GMT it returns a database handle. .SS BuildDSN .IX Subsection "BuildDSN" Extend "BuildDNS" in DBIx::SearchBuilder::Handle to force \&\f(CW\*(C`client_encoding\*(C'\fR to be UTF\-8, so that character strings can be safely passed to, and retrieved from, the database. See "Encoding" in DBD::Pg. .SS Insert .IX Subsection "Insert" Takes a table name as the first argument and assumes that the rest of the arguments are an array of key-value pairs to be inserted. .PP In case of insert failure, returns a Class::ReturnValue object preloaded with error info. .SS InsertQueryString .IX Subsection "InsertQueryString" Postgres sepcific overriding method for "InsertQueryString" in DBIx::SearchBuilder::Handle. .SS "IdSequenceName TABLE" .IX Subsection "IdSequenceName TABLE" Takes a TABLE name and returns the name of the sequence of the primary key for that table. .SS BinarySafeBLOBs .IX Subsection "BinarySafeBLOBs" Return undef, as no current version of postgres supports binary-safe blobs .SS "ApplyLimits STATEMENTREF ROWS_PER_PAGE FIRST_ROW" .IX Subsection "ApplyLimits STATEMENTREF ROWS_PER_PAGE FIRST_ROW" takes an SQL SELECT statement and massages it to return ROWS_PER_PAGE starting with FIRST_ROW; .SS "_MakeClauseCaseInsensitive FIELD OPERATOR VALUE" .IX Subsection "_MakeClauseCaseInsensitive FIELD OPERATOR VALUE" Takes a field, operator and value. performs the magic necessary to make your database treat this clause as case insensitive. .PP Returns a FIELD OPERATOR VALUE triple. .SS "DistinctQuery STATEMENTREF" .IX Subsection "DistinctQuery STATEMENTREF" takes an incomplete SQL SELECT statement and massages it to return a DISTINCT result set. .SS SimpleDateTimeFunctions .IX Subsection "SimpleDateTimeFunctions" Returns hash reference with specific date time functions of this database for "DateTimeFunction" in DBIx::SearchBuilder::Handle. .SS ConvertTimezoneFunction .IX Subsection "ConvertTimezoneFunction" Custom implementation of "ConvertTimezoneFunction" in DBIx::SearchBuilder::Handle. .PP In Pg time and timestamp data types may be "with time zone" or "without time zone". So if Field argument is timestamp "with time zone" then From argument is not required and is useless. Otherwise From argument identifies time zone of the Field argument that is "without time zone". .PP For consistency with other DBs use timestamp columns without time zones and provide From argument.