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.)

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).

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 meaningful effect.

For more about Interchange and databases, and supported formats, see database glossary entry.

AVAILABILITY

DatabaseAutoIgnore is available in Interchange versions:

5.4.0-5.7.0 (cvs-head)

SOURCE

Interchange 5.7.0:

Source: lib/Vend/Config.pm
Line 585

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

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

AUTHORS

Mike Heins

SEE ALSO

Database(7ic), DatabaseAuto(7ic)

DocBook! Interchange!