Query: sql::translator::filter::defaultextra
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SQL::Translator::Filter::DefaultExtra(3pm) User Contributed Perl Documentation SQL::Translator::Filter::DefaultExtra(3pm)NAMESQL::Translator::Filter::DefaultExtra - Set default extra data values for schema objects.SYNOPSISuse 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;DESCRIPTIONMaybe I'm trying to do too much in one go. Args set a match and then an update, if you want to set lots of things, use lots of filters!SEE ALSOperl(1), SQL::TranslatorBUGSTODOAUTHORperl v5.14.2 2012-01-18 SQL::Translator::Filter::DefaultExtra(3pm)
Similar Topics in the Unix Linux Community |
---|
awk or sed - Convert 2 lines to 1 line |
Introduction |
Find columns in a file based on header and print to new file |
A (ksh) Library For and From UNIX.com |