DatabaseDefault
Defines default parameters for a database table or file.
Synopsis
|
DatabaseDefault key value
|
You can set multiple defaults at once
by using the Perl-style "here document" syntax,
as follows:
DatabaseDefault <<EOD
key1 value1
key2 value2
EOD
|
Scope
This directive is only available for use in the local
(catalog.cfg) configuration file.
It will not affect any other website in any way.
This directive will not work in the global
(interchange.cfg) configuration file.
Description
Defines default parameters for a database table or file.
This can be used to set a default WRITE_CONTROL setting or
set a default USER or PASSWORD etc. It accepts any scalar setting, which means all except for the following:
- ALTERNATE_*
- BINARY
- COLUMN_DEF
- DEFAULT
- FIELD_ALIAS
|
- FILTER_*
- NAME
- NUMERIC
- POSTCREATE
- WRITE_CATALOG
|
|
Warning
The default setting must be defined before the database table/file is defined
with the Database directive.
Explicit Database directives override any defaults set.
|
You may use the Replace directive to delete the
DatabaseDefault settings, as follows:
Example
DatabaseDefault <<EOD
WRITE_CONTROL 1
WRITE_TAGGED 1
HIDE_AUTO_FILES 1
EOD
|
See also