|
NAMESQL::Translator::Filter::Names - Tweak the names of schema objects. SYNOPSIS #! /usr/bin/perl -w
use SQL::Translator;
# Lowercase all table names and upper case the first letter of all field
# names. (MySql style!)
#
my $sqlt = SQL::Translator->new(
filename => \@ARGV,
from => 'MySQL',
to => 'MySQL',
filters => [
Names => {
'tables' => 'lc',
'fields' => 'ucfirst',
},
],
) || die "SQLFairy error : ".SQL::Translator->error;
print($sqlt->translate) || die "SQLFairy error : ".$sqlt->error;
DESCRIPTIONTweak the names of schema objects by providing functions to filter the names from the given into the desired forms. SEE ALSOperl(1), SQL::Translator
|