GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SQL::Translator::Parser::DBI::PostgreSQL(3) User Contributed Perl Documentation SQL::Translator::Parser::DBI::PostgreSQL(3)

SQL::Translator::Parser::DBI::PostgreSQL - parser for DBD::Pg

See SQL::Translator::Parser::DBI.

Uses DBI to query PostgreSQL system tables to determine schema structure.

You can specify the following for "parser_args" in SQL::Translator :

If set to a true value, the parser will look for column types which are user-defined Enums, and generate a column definition like:

  {
    data_type => 'enum',
    extra => {
      custom_type_name => 'MyEnumType',
      list => [ 'enum_val_1', 'enum_val_2', ... ],
    }
  }

This makes a proper round-trip with SQL::Translator::Producer::PostgreSQL (which re-creates the custom enum type if "producer_args->{postgres_version} >= 8.003") and can be translated to other engines.

If the option is false (the default) you would just get

  { data_type => 'MyEnumType' }

with no provided method to translate it to other SQL engines.

Scott Cain <cain@cshl.edu>, previous author: Paul Harrington <harringp@deshaw.com>.

SQL::Translator, DBD::Pg.

2024-11-18 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.