NAME
Alzabo::SQLMaker::PostgreSQL - Alzabo SQL making class for PostgreSQL
SYNOPSIS
use Alzabo::SQLMaker;my $sql = Alzabo::SQLMaker->new( sql => 'PostgreSQL' );
DESCRIPTION
PostgreSQL-specific SQL creation.
METHODS
Almost all of the functionality inherited from "Alzabo::SQLMaker" as is. The only overridden methods are "limit()" and "get_limit()", as PostgreSQL does allow for a "LIMIT" clause in its SQL.
EXPORTED SQL FUNCTIONS
SQL may be imported by name or by tags. They take arguments as documented in the PostgreSQL documentation (version 3.23.39). The functions (organized by tag) are:
:math
PIRANDOMABDCEILDEGREESFLOORFACTORIALSQRTCBRTEXPLNRADIANSACOSASINATANATAN2COSCOTSINTANROUNDTRUNCLOGPOWMODTO_CHAR
:string
LENGTHCHAR_LENGTHCHARACTER_LENGThOCTET_LENGTHTIRMUPPERLOWERINITCAPASCIITO_ASCIISTRPOSPOSITIONTO_NUMBERTO_DATETO_TIMESTAMPREPEATRPADLPADSUBSTR
:datetime
NOWCURRENT_DATECURRENT_TIMECURRENT_TIMESTAMPTIMEOFDAYISFINITTIMESTAMPTO_CHARDATE_PARTDATE_TRUNCEXTRACTOVERLAPS
:network
BROADCASTHOSTNETMASKMASKLENNETWORKTEXTABBREV
:aggregate
These are functions which operate on an aggregate set of values all at once.
COUNTAVGMINMAXSUMSTDDEVVARIANCE
:system
These are functions which return information about the Postgres server.
CURRENT_USERSYSTEM_USERUSER
:control
These are flow control functions:
NULLIFCOALESCE
:misc
These are functions which don't fit into any other categories.
ENCRYPTENCODEDECODEFORMATINET_NTOAINET_ATONBIT_ORBIT_ANDPASSWORDMD5LOAD_FILE
:common
These are functions from other groups that are most commonly used.
NOWCOUNTAVGMINMAXSUMDISTINCT
AUTHOR
Dave Rolsky, <[email protected]>