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 CreateMap property.

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 property to store additional internal files.
  • The SchemaDefinition property is an alias for the SchemaMap property.

Data Source Methods

public String getSchemaMap()

public void setSchemaMap(String)

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
    • dd.home system property
    • LOCALAPPDATA environment variable
    • APPDATA environment variable
    • user.home system property

For Windows, the file path takes the following format:

<available_location>\Progress\DataDirect\MongoDB_Schema\<user_name>.config
  • UNIX/Linux
    • DD_HOME environment variable
    • dd.home system property
    • user.home system property

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

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

Data Type

String