new SuperMap.DatasourceConnectionInfo(options)
Name | Type | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
The optional parameters.
|
Members
-
aliasstring
-
The alias of the datasource.
-
connectboolean
-
Whether the datasource automatically connects to the data.
-
dataBasestring
-
The name of the database which is connected by the datasource.
-
driverstring
-
he driver program name of the database using ODBC (Open Database Connectivity). For SQL Server database and the WMTS service published by iServer, the parameter is required. For SQL Server database, it uses ODBC for connection, and the driver program name for it is “SQL Server” or “SQL Native Client”; for WMTS service published by iServer, the driver program name is “WMTS”.
-
engineTypeSuperMap.EngineType
-
The engine type which is connected to the datasource.
-
exclusiveboolean
-
Whether to open the datasource exclusively.
-
OpenLinkTableboolean
-
Whether to open other non-SuperMap data tables in the database as LinkTable.
-
passwordstring
-
The login password of a database or a file which is connected to the datasource.
-
readOnlyboolean
-
Whether the datasource should be opened as read-only.
-
serverstring
-
Database server name, file name or service URL.
- Absolute path for SDB or UDB files. Note: When length of the absolute path exceeds the 260 bytes of UTF-8 encoding, the datasource will not be able to open.
- For the Oracle database, server name is the TNS service name.
- For SQL Server database, server name is its system DSN (Database Source Name) name.
- For PostgreSQL database, server name is “IP:port number”, the default port number is 5432.
- For DB2 database, it has been cataloged, therefore, server setting is not needed.
- For Kingbase database, server name is its IP address.
- For GoogleMaps datasource, it is server address is http://maps.google.com by default and not editable.
- For SuperMapCould datasource, it is the service address.
- For MAPWORLD datasource, it is the service address. The default setting is href="http://www.tianditu.cn">www.tianditu.cn} and not editable.
- For OGC and REST datasources, it is the service address.
-
userstring
-
The login user name of the database.
Methods
-
destroy()
DatasourceConnectionInfo.js, line 117 -
Disposes the resource. The property that references resource is set to null.