SQL::Translator::Filter::DefaultExtra man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

SQL::Translator::FilteUsereContributedSQL::Translator::Filter::DefaultExtra(3)

NAME
       SQL::Translator::Filter::DefaultExtra - Set default extra data values
       for schema objects.

SYNOPSIS
	 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
       Maybe 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 ALSO
       perl(1), SQL::Translator

BUGS
TODO
AUTHOR
perl v5.14.2			  2011SQL::Translator::Filter::DefaultExtra(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net