SQL::Tr...tgreSQL(3)

okay bestie, welcome to the SQL::Tr...tgreSQL(3) page πŸ’… β€” it lives under User Contributed Perl Documentation, and it is literally giving β€œtiny manpage, very specific job” energy. let’s go ✨

🌸 NAME 🌸

SQL::Translator::Parser::DBI::PostgreSQL β€” a parser for DBD::Pg. periodt πŸ’–

✨ SYNOPSIS ✨

See SQL::Translator::Parser::DBI, bestie. that’s the whole synopsis 🫢

πŸ’– DESCRIPTION πŸ’–

Uses DBI to query PostgreSQL system tables and determine the schema structure. no cap, that’s the job πŸ”₯

πŸŽ€ CONFIGURATION πŸŽ€

You can specify the following for parser_args in SQL::Translator, bestie:

πŸ’… deconstruct_enum_types πŸ’…

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. slay πŸ’œ

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. so yeah, that’s the documented default vibe πŸ™ˆ

reminder, bestie: the option is false by default, and with { data_type => 'MyEnumType' } there’s no provided method to translate it to other SQL engines. that’s literally what the page says πŸ’…

πŸ‘‘ AUTHOR πŸ‘‘

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

🌈 SEE ALSO 🌈

SQL::Translator, DBD::Pg. go read those too, bestie πŸ’–


that’s the whole page, bestie 🫢 β€” source/version: perl v5.42.0, dated 2024-12-12, filed under SQL::Tr...tgreSQL(3). now go query some system tables πŸ’…βœ¨

πŸ“¦ where this page comes from