GNOME Data Access manual |
---|
To connect you need to use two functions. We use gda_client_new () to create a connection pool and use gda_client_open_connection () to create the specific connections to the different data sources.
void do_stuff () { GdaClient *client; GdaConnection *connection; list_providers (); list_datasources (); client = gda_client_new (); g_print ("CONNECTING\n"); connection = gda_client_open_connection (client, "calvaris", NULL, NULL); g_print ("CONNECTED\n"); proving_errors (connection); process_accounts(connection); gda_client_close_all_connections (client); }
<<< Beginning | Processing queries >>> |