# ----------------------------------------------------------
#
# ----------------------------------------------------------
+* Add support for skip tables parser arg in Parser::DBI::MySQL (jgoulah)
* Changed behaviour of ::Producer::Oracle when returning an array of statements to make it compatible to DBI->do()
* Fixed a few bugs in ::Producer::Oracle
* Applied patch from jgoulah to support mysql's MERGE option
--trace Print parser trace info
--show-warnings Print warnings to STDERR
+ General Parser Options:
+
+ --skip Comma-separated list of tables to skip (only implemented in some parsers)
+
DBI Parser Options:
--dsn DSN for connecting to database
db_user => $db_user,
db_password => $db_password,
mysql_parser_version => $mysql_parser_version,
+ skip => $skip,
},
producer_args => {
imap_file => $imap_file,
my ( $tr, $dbh ) = @_;
my $schema = $tr->schema;
my @table_names = @{ $dbh->selectcol_arrayref('show tables') };
+ my @skip_tables = defined $tr->parser_args->{skip}?split(/,/, $tr->parser_args->{skip}):();
$dbh->{'FetchHashKeyName'} = 'NAME_lc';
my $create;
for my $table_name ( @table_names ) {
+ next if (grep /^$table_name$/, @skip_tables);
my $sth = $dbh->prepare("show create table $table_name");
$sth->execute;
my $table = $sth->fetchrow_hashref;