For more information... RTFM!
NAVIGATION
PAGES THAT LINK HERE
ACCOUNT LOGIN

You are not logged in

Powered by Interchange version 5.7.0

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

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: 

Replace  DatabaseDefault

Example

DatabaseDefault  <<EOD
    WRITE_CONTROL    1
    WRITE_TAGGED     1
    HIDE_AUTO_FILES  1
EOD

See also

Category:  Local config directives
Last modified by: Kevin Walsh
Modification date: Thursday 12 July 2007 at 9:26 AM (EDT)
Home  |  Legal nonsense  |  Privacy policy  |  Contact us