DatabaseAutoIgnore — prevent DatabaseAuto from configuring tables whose names match regex pattern
The directive allows regexp specification of an "ignore list" that
prevents DatabaseAuto from automatically configuring
all tables found. (For example, you will want
to exclude tables in non-default schemas.)
Note that instead of using this directive, you may prefer to directly
specify schema argument to the DatabaseAuto directive.
(DatabaseAutoIgnore easily ignores more tables than you intend).
Example: Specifying DatabaseAutoIgnore
This prevents Interchange from bringing in tables in non-default schemas in PostgreSQL 7.4 and newer.
DatabaseAutoIgnore ^sql_ DatabaseAuto dbi:Pg:dbname=DBNAME;host=PGHOST
This directive must be set before DatabaseAuto to have meaningful
effect.
For more about Interchange and databases, and supported formats, see database glossary entry.
Interchange 5.7.0:
Source: lib/Vend/Config.pm
Line 3789 (context shows lines 3789-3801)
sub parse_regex {
my($var, $value) = @_;
eval {
my $never = 'NeVAirBE';
$never =~ m{$value};
};
if($@) {
config_error("Bad regular expression in $var.");
}
return $value;
}