open_from_dsn


Description:

[ Version ( since = "6.0" ) ]
public static Connection open_from_dsn (DsnInfo dsn, string? auth_string, ConnectionOptions options) throws Error

This function creates a connection and opens it, using a DSN.

If opening fails, then no connection is created. See Connection.from_dsn for more information.

Parameters:

dsn

data sourcename.

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