Name

DatabaseAutoIgnore — prevent DatabaseAuto from configuring tables whose names match regex pattern

SYNOPSIS

regexp

DESCRIPTION

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.

DIRECTIVE TYPE AND DEFAULT VALUE

Catalog directive

EXAMPLES

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

NOTES

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.

AVAILABILITY

DatabaseAutoIgnore is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: lib/Vend/Config.pm
Line 593

['DatabaseAutoIgnore',   'regex',          ''],

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;
}

AUTHORS

Mike Heins

SEE ALSO

Database(7ic), DatabaseAuto(7ic)

DocBook! Interchange!