SQL::Tr...ultExtra(3)
π NAME π
okay so bestie, welcome to this User Contributed Perl Documentation page for SQL::Translator::Filter::DefaultExtra β the manual name is SQL::Tr...ultExtra(3), iykyk π
. It does the iconic thing of setting default extra data values for schema objects. That's the whole vibe. π«Ά
β¨ SYNOPSIS β¨
this is literally how you call it, no cap β code copied exactly, so don't come for me about the comments π:
use SQL::Translator;
my $sqlt = SQL::Translator->new(
from => 'MySQL',
to => 'MySQL',
filters => [
DefaultExtra => {
# XXX - These should really be ordered
# Default widget for fields to basic text edit.
'field.widget' => 'text',
# idea:
'field(data_type=BIT).widget' => 'yesno',
# Default label (human formated name) for fields and tables
'field.label' => '=ucfirst($name)',
'table.label' => '=ucfirst($name)',
},
],
) || die "SQLFairy error : ".SQL::Translator->error;
my $sql = $sqlt->translate || die "SQLFairy error : ".$sqlt->error;
πΈ DESCRIPTION πΈ
the author is literally saying: "Maybe I'm trying to do too much in one go." π and honestly? mood. Here's the whole tea: Args set a match and then an update. If you want to set lots of things, use lots of filters! That's it β no hidden lore, no extra behavior, just that. β¨
π¦ SEE ALSO π¦
go look at these besties when you're done:
perl(1)SQL::Translator
π cute sign-off: this page is from perl v5.42.0, dated 2024-12-12, and it's the SQL::Tr...ultExtra(3) manual page. bye bestie, slay responsibly! π«Άπ
π¦ 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