function gsk_dbh_connect

void gsk_dbh_connect
                (GskMainLoop           *        main_loop,
                 GskDbiDataSource      *        data_source,
                 const gchar           *        username,
                 const gchar           *        password,
                 GskDbhConnectCallback          callback,
                 gpointer                       callback_data)
Constructor for database handles. Instantiates the type associated with the datasource, and attempts connection with the authentication information provided.

Parameters:

main_loop

Main loop (execution context) for the constructed handle to use.

data_source

The datasource to connect to.

username

The username for authentication.

password

The password for authentication.

callback

Callback to execute on completion. Note the callback is always executed, even on connection failure.

callback_data

Data passed unmodified to callback.