gda.connection_event

Module for [ConnectionEvent] class

Types 3

Methods
GType _gType() @property
ConnectionEvent self()Returns `this`, for use in `with` statements.
ConnectionEventGidBuilder builder()Get builder for [gda.connection_event.ConnectionEvent] Returns: New builder object
int type() @property
void type(int propval) @property
glong getCode()
string getDescription()Get the description of the event. Note that is event's type is GDACONNECTIONEVENT_COMMAND, the the description is the SQL of the command. Returns: event's description.
gda.types.ConnectionEventType getEventType()Get event's severity (from a simple notice to a fatal event) Returns: the event type
gda.types.ConnectionEventCode getGdaCode()Retrieve the code associated to event. Returns: the #GdaConnectionEventCode event's code
string getSource()
string getSqlstate()Get the SQLSTATE value of event. Even though the SQLSTATE values are specified by ANSI SQL and ODBC, consult each DBMS for the possible values. However, the "00000" (success) value means that there...
void setCode(glong code)Sets event's code: the code is specific to the provider being used. If you want to have a common understanding of the event codes, use [gda.connection_event.ConnectionEvent.getGdaCode] instead.
void setDescription(string description = null)Sets event's description. This function should not be called directly.
void setEventType(gda.types.ConnectionEventType type)Sets event's severity (from a simple notice to a fatal event) This function should not be called directly.
void setGdaCode(gda.types.ConnectionEventCode code)Sets event's gda code: that code is standardized by the libgda library. If you want to specify the corresponding provider specific code, use [gda.connectionevent.ConnectionEvent.getCode] or [gda.co...
void setSource(string source)Sets event's source; this function should not be called directly
void setSqlstate(string sqlstate)Changes the SQLSTATE code of event, this function should not be called directly
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder for [gda.connection_event.ConnectionEvent]