Connection.from_dsn


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "5.0.2" ) ]
public Connection.from_dsn (string dsn, string? auth_string, ConnectionOptions options) throws Error

This function is similar to open_from_dsn, except it does not actually open the connection, you have to open it using open.

Parameters:

dsn

data source name.

auth_string

authentication string, or null

options

options for the connection (see ConnectionOptions).

Returns:

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




2022 vala-language.org