Top |
Functions
#define | ASSERT_TABLE_NAME() |
#define | WARN_META_UPDATE_FAILURE() |
void | gda_connection_increase_usage () |
void | gda_connection_decrease_usage () |
Functions
WARN_META_UPDATE_FAILURE()
#define WARN_META_UPDATE_FAILURE(x,method) if (!(x)) g_print ("%s:%d %s (meta method => %s) ERROR: %s\n", __FILE__, __LINE__, __FUNCTION__, (method), error && *error && (*error)->message ? (*error)->message : "???")
gda_connection_increase_usage ()
void
gda_connection_increase_usage (GdaConnection *cnc
);
Declare that cnc
is being used, which may emit the "status-changed" signal along the way. Any call to this function
must be followed by one single call to gda_connection_decrease_usage()
. The connection's status must either be
IDLE, BUSY, or OPENING when this function is called. If the status is IDLE, then it will be switched to BUSY.
Note: This function is reserved to database provider's implementation
WARNING: cnc
_MUST_ be locked using gda_lockable_lock()
before this function is called
gda_connection_decrease_usage ()
void
gda_connection_decrease_usage (GdaConnection *cnc
);
Declare that cnc
is not being used, which may emit the "status-changed" signal along the way. Any call to this function
must be following a single call to gda_connection_increase_usage()
. The connection's status must either be
BUSY or OPENING when this function is called. If it's BUSY, then it may be changed to IDLE after this call.
Note: This function is reserved to database provider's implementation
WARNING: cnc
_MUST_ be locked using gda_lockable_lock()
before this function is called