skip to main content
Connection property descriptions : SchemaMap
  

Try DataDirect Drivers Now

SchemaMap

Purpose

Specifies the directory where the internal configuration files, REST file, and the relational map of the REST data model are written. The driver looks for these files when connecting to a REST service. If the file does not exist, the driver creates one.

Valid Values

string
where:
string
is the path to the directory used to store the configuration files, REST file, and relational map. For example, if SchemaMap is set to a value of C:\\Users\\Default\\AppData\\Local\\Progress\\DataDirect\\AutoREST_Schema\\, the driver either creates or looks for these files in the directory C:\Users\Default\AppData\Local\Progress\DataDirect\AutoREST_Schema.

Notes

*By default, the name of the internal files are determined by the values of the User and ServerName connection properties. If no value is specified for either property, a prefix of USER is used for these files. For example, USER.config.
*When connecting to a REST service, the driver looks for the schema map configuration files in the specified location. If the configuration files do not exist, the driver creates them using the location you have provided. If you do not provide a location, the driver creates it using default values.
*You can refresh the internal files related to an existing view of your data by using the SQL extension Refresh Map. Refresh Map runs a discovery against your native data and updates your internal files accordingly.

Example

As the following examples show, escapes are needed when specifying SchemaMap for a data source but are not used when specifying SchemaMap in a connection URL.
Connection URL Example
jdbc:datadirect:autorest:Config=C:\\path\\to\\myrest.rest;
SchemaMap=C:\\Users\\Default\\AppData\\Local\\Progress\\DataDirect\\AutoREST_Schema\\
Data Source Example
AutoRESTDataSource ds = new AutoRESTDataSource();
ds.setDescription("My Autonomous REST Connector Data Source");
ds.setConfig("C:\\path\\to\\myrest.rest");
ds.setSchemaMap("C:\\Users\\Default\\AppData\\Local\\Progress
\\DataDirect\\AutoREST_Schema\\")

Data Source Method

setSchemaMap

Default

*For Windows XP and Windows Server 2003
*user_profile\Application Data\Local\Progress\DataDirect\AutoREST_Schema\
*For other Windows platforms
*User data source: user_profile\AppData\Local\Progress\DataDirect\AutoREST_Schema\
*System data source: C:\Users\Default\AppData\Local\Progress\DataDirect\AutoREST_Schema\
*For UNIX/Linux
*home_dir/progress/datadirect/AutoREST_Schema/

Data Type

String

See Also

*Refresh Map (EXT)
*Mapping properties