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.)
A loose regex specification can easily ignore more tables than you
intended, and if the goal is just using tables from the public schema, you
might prefer specifying schema
argument to
DatabaseAuto
directly.
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 a meaningful
effect.
For more about Interchange and databases, and supported formats, see database glossary entry.
Interchange 5.9.0:
Source: lib/Vend/Config.pm
Line 3891 (context shows lines 3891-3903)
sub parse_regex { my($var, $value) = @_; eval { my $never = 'NeVAirBE'; $never =~ m{$value}; }; if($@) { config_error("Bad regular expression in $var."); } return $value; }