| 1 | package DBI::Easy::Vendor::postgresql; | ||
| 2 | |||
| 3 | use Class::Easy; | ||
| 4 | |||
| 5 | use base qw(DBI::Easy::Vendor::Base); | ||
| 6 | |||
| 7 | # Style Specification Description Example | ||
| 8 | # ISO ISO 8601/SQL standard 1997-12-17 07:37:16-08 | ||
| 9 | # SQL traditional style 12/17/1997 07:37:16.00 PST | ||
| 10 | # POSTGRES original style Wed Dec 17 07:37:16 1997 PST | ||
| 11 | # German regional style 17.12.1997 07:37:16.00 PST | ||
| 12 | |||
| 13 | # datestyle Setting Input Ordering Example Output | ||
| 14 | # SQL, DMY day/month/year 17/12/1997 15:37:16.00 CET | ||
| 15 | # SQL, MDY month/day/year 12/17/1997 07:37:16.00 PST | ||
| 16 | # Postgres, DMY day/month/year Wed 17 Dec 07:37:16 1997 PST | ||
| 17 | # interval output looks like the input format, except that units like | ||
| 18 | # century or week are converted to years and days and ago is converted | ||
| 19 | # to an appropriate sign. In ISO mode the output looks like | ||
| 20 | # | ||
| 21 | # [ quantity unit [ ... ] ] [ days ] [ hours:minutes:seconds ] | ||
| 22 | # The date/time styles can be selected by the user using the SET datestyle | ||
| 23 | # command, the DateStyle parameter in the postgresql.conf configuration file, | ||
| 24 | # or the PGDATESTYLE environment variable on the server or client. | ||
| 25 | # The formatting function to_char (see Section 9.8) is also available as a | ||
| 26 | # more flexible way to format the date/time output. | ||
| 27 | |||
| 28 | # SHOW DateStyle; | ||
| 29 | # DateStyle | ||
| 30 | # ----------- | ||
| 31 | # ISO, MDY | ||
| 32 | |||
| 33 | |||
| 34 | |||
| 35 | sub vendor_schema { | ||
| 36 | # please refer to http://www.postgresql.org/docs/current/static/ddl-schemas.html | ||
| 37 | |||
| 38 | # SHOW search_path; | ||
| 39 | # In the default setup this returns: | ||
| 40 | # | ||
| 41 | # search_path | ||
| 42 | # -------------- | ||
| 43 | # "$user",public | ||
| 44 | # | ||
| 45 | # SET search_path TO myschema,public; | ||
| 46 | |||
| 47 | return; | ||
| 48 | } | ||
| 49 | |||
| 50 | 1; |