Connection.newFromDsn

gda.connection.Connection newFromDsn(string dsn, string authString, gda.types.ConnectionOptions options)

This function is similar to [gda.connection.Connection.openFromDsn], except it does not actually open the connection, you have to open it using [gda.connection.Connection.open].

Parameters

dsndata source name.
authStringauthentication string, or null
optionsoptions for the connection (see #GdaConnectionOptions).

Returns

a new #GdaConnection if connection opening was successful or null if there was an error.

Throws

[ConnectionException]