Each GdaConnection object maintains a list of events which occurred on the connection. Each event is stored as a GdaConnectionEvent object, and the possible event kinds are:
GDA_CONNECTION_EVENT_NOTICE: for notices which are general purpose information
GDA_CONNECTION_EVENT_WARNING: for warnings
GDA_CONNECTION_EVENT_ERROR: for errors
GDA_CONNECTION_EVENT_COMMAND: for SQL statements which have been executed
The list of events for a GdaConnection can be obtained using gda_connection_get_events(), the list of events can be manually cleared anytime using gda_connection_clear_events_list (), and is automatically cleared before any command or query is executed.