Data Dictionary Configuration File
Description
The BASIS configuration file, most commonly named config.tpm,
is an ASCII text file that identifies the location of the data and dictionary
files. The file must contain the paths to the DICTIONARY and DATA directories
but can also contain global path and login information. The following
is an example of a standard config.tpm
file:
# Demo Database Configuration
DICTIONARY=c:\basis\ddbuild\examples\demo\bbdict\
DATA=c:\basis\ddbuild\examples\demo\data\
Configuration File Guidelines
|
#if, #else, #endif conditionals |
Two forms allowed. #if expression global assignment(s) #endif #if expression global assignment(s) #else global assignment(s) #endif If the expression condition is true, then any lines between #else and #endif are ignored. If the expression condition is false, then any lines between the #if and #else (or #endif in the first form) are ignored. |
|---|---|
|
#Include statements |
HOME=/usr/asmith/ |
|
Conditional blocks |
global
|
|
DICTIONARY and DATA directories |
DICTIONARY=/<main,port=1200>/u/confdb/bbdict/
|
|
File comments |
|
|
Forward or backward slashes |
|
|
Globals |
# Demo Database Configuration
BASE=$HOME Another way to accomplish this is to put the environment variable within parentheses. For example: DATA=($HOME)/data/ |
Example
The following is an example of a standard config.tpm
file:
# Taos Demo Database Configuration
DICTIONARY=c:\basis\ddbuild\examples\taosdemo\bbdict\
DATA=c:\basis\ddbuild\examples\taosdemo\data\