Current Path : /proc/2/root/usr/local/share/man/man3/ |
|
Current File : //proc/2/root/usr/local/share/man/man3/Locale::MakePhrase::BackingStore::Database::PostgreSQL.3pm |
.\" Automatically generated by Pod::Man 2.22 (Pod::Simple 3.13)
.\"
.\" 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
..
.\" Set up some character translations and predefined strings. \*(-- will
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
.\" nothing in troff, for use with C<>.
.tr \(*W-
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
.ie n \{\
. ds -- \(*W-
. ds PI pi
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
. ds L" ""
. ds R" ""
. ds C` ""
. ds C' ""
'br\}
.el\{\
. ds -- \|\(em\|
. ds PI \(*p
. ds L" ``
. ds R" ''
'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 turned on, 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.
.ie \nF \{\
. de IX
. tm Index:\\$1\t\\n%\t"\\$2"
..
. nr % 0
. rr F
.\}
.el \{\
. de IX
..
.\}
.\" ========================================================================
.\"
.IX Title "Locale::MakePhrase::BackingStore::Database::PostgreSQL 3"
.TH Locale::MakePhrase::BackingStore::Database::PostgreSQL 3 "2006-03-02" "perl v5.10.1" "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"
Locale::MakePhrase::BackingStore::Database::PostgreSQL \- Retrieve
translations from a table within a PostgreSQL database.
.SH "DESCRIPTION"
.IX Header "DESCRIPTION"
This backing store is capable of loading language rules from a
PostgreSQL table. See Locale::MakePhrase::BackingStore::Database
for more information.
.PP
The PostgreSQL database instanc should be setup to use \s-1UNICODE\s0 as the
text storage mechanism (ie: 'psql \-l' should show you how the database
instance was created).
.SH "TABLE STRUCTURE"
.IX Header "TABLE STRUCTURE"
The table structure can be created with the following PostgreSQL
\&\s-1SQL\s0 statement:
.PP
.Vb 7
\& CREATE TABLE some_table (
\& key TEXT,
\& language TEXT,
\& expression TEXT,
\& priority INTEGER,
\& translation TEXT
\& );
.Ve
.PP
This only differs from the generic database driver, in that \s-1TEXT\s0
is being used as a replacement for \s-1VARCHAR\s0 (both statements do the
same thing).
.SH "API"
.IX Header "API"
The following methods are implemented:
.ie n .SS "$self new([...])"
.el .SS "\f(CW$self\fP new([...])"
.IX Subsection "$self new([...])"
[ Inherited from Locale::MakePhrase::BackingStore::Database. ]
.PP
Any options defined for in the base class, can be set here. ie: you
could specify some of these options:
.ie n .IP """table""" 2
.el .IP "\f(CWtable\fR" 2
.IX Item "table"
You must set this value.
.ie n .IP """dbh""" 2
.el .IP "\f(CWdbh\fR" 2
.IX Item "dbh"
.PD 0
.ie n .IP """owned""" 2
.el .IP "\f(CWowned\fR" 2
.IX Item "owned"
.ie n .IP """host""" 2
.el .IP "\f(CWhost\fR" 2
.IX Item "host"
.PD
This module defaults to \fBlocalhost\fR unless it is defined.
.ie n .IP """port""" 2
.el .IP "\f(CWport\fR" 2
.IX Item "port"
This module defaults to \fB5432\fR unless it is defined.
.ie n .IP """user""" 2
.el .IP "\f(CWuser\fR" 2
.IX Item "user"
This module defaults to an empty string.
.ie n .IP """password""" 2
.el .IP "\f(CWpassword\fR" 2
.IX Item "password"
This module defaults to an empty string.
.ie n .IP """connect_options""" 2
.el .IP "\f(CWconnect_options\fR" 2
.IX Item "connect_options"
The default PostgreSQL connections options are:
.Sp
.Vb 4
\& RaiseError => 1
\& AutoCommit => 1
\& ChopBlanks => 1
\& pg_enable_utf8 => 1
.Ve
.Sp
If you set this value, you must supply a hash_ref supplying the
appropriate PostgreSQL connection options.
.Sp
Note that we set the AutoCommit simply because we only ever do
\&\s-1SELECT\s0's from the table, thus we never need to concern ourselves
with aborted transations.
.PP
Notes: you must specify either the \f(CW\*(C`dbh\*(C'\fR option, or suitable connection
options.
.SH "POD ERRORS"
.IX Header "POD ERRORS"
Hey! \fBThe above document had some coding errors, which are explained below:\fR
.IP "Around line 131:" 4
.IX Item "Around line 131:"
=cut found outside a pod block. Skipping to next block.
Copyright 2K16 - 2K18 Indonesian Hacker Rulez