Attribute

SchemaMap (smp)

Purpose

Specifies the fully qualified path of the configuration file where the relational map of native data is written. The driver looks for this file when connecting to a MongoDB server. The driver generates the files based on the setting of the Create Map (CreateMap) option.

Valid Values

string

where:

string

is the absolute path and filename of the configuration file, including the .config extension. For example, if specifying a value of:

C:\\Users\\Default\\AppData\\Local\\Progress\\DataDirect\\MongoDB_Schema\\MyServer.config

the driver either creates or looks for the configuration file Myserver.config in the following directory:

C:\Users\Default\AppData\Local\Progress\DataDirect\MongoDB_Schema\

Notes

  • When connecting to a server, the driver looks for the schema map configuration file. If the configuration file does not exist, the driver creates a schema map using the name and location you have provided. If you do not provide a name and location for the schema map, the driver creates a schema map using default values.
  • The driver uses the path specified in this connection option to store additional internal files.
  • The SchemaDefinition attribute is an alias for the Schema Map (SchemaMap) option.

Default Value

The default is determined by the environment. The driver attempts to create the files in a subdirectory of the first available directory in the following order:

  • Windows
    • DD_HOME environment variable
    • LOCALAPPDATA environment variable
    • APPDATA environment variable
    • User’s home directory

For Windows, the the file path takes the following format:

<available_location>\Progress\DataDirect\MongoDB_Schema\<user_name>.config
  • For UNIX/Linux
    • DD_HOME environment variable
    • User’s home directory

For UNIX/Linux, the file path takes the following format:

<available_location>/progress/datadirect/MongoDB_schema/<user_name>.config