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
- opensuse-leap 16.0: perl-SQL-Translator 1.660.0-bp160.1.11 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms