Client.openConnectionFromString

Opens a connection given a provider ID and a connection string. This allows applications to open connections without having to create a data source in the configuration. The format of cnc_string is similar to PostgreSQL and MySQL connection strings. It is a ;-separated series of key=value pairs. Do not add extra whitespace after the ; separator. The possible keys depend on the provider, but

class Client
openConnectionFromString
(
string providerId
,
string cncString
,
GdaConnectionOptions options
)

Parameters

providerId string

provider ID to connect to.

cncString string

connection string.

options GdaConnectionOptions

options for the connection (see GdaConnectionOptions).

Return Value

the opened connection if successful, NULL if there is an error.

Meta