open_from_string
Description:
public static Connection open_from_string (string? provider_name, string cnc_string, string? auth_string, ConnectionOptions options) throws Error
This function creates a connection and opens it, using a connection string.
If opening fails, then no connection is created. See Connection.from_string for more information.
Parameters:
provider_name |
provider ID to connect to, or null |
cnc_string |
connection string. |
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. |