gda.connection_event

Module for [ConnectionEvent] class

Types 3

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
ConnectionEvent self() nothrowReturns `this`, for use in `with` statements.
ConnectionEventGidBuilder builder() static nothrowGet builder for [gda.connection_event.ConnectionEvent] Returns: New builder object
int type() @property nothrow
void type(int propval) @property nothrow
glong getCode() nothrow
string getDescription() nothrowGet the description of the event. Note that is event's type is GDA_CONNECTION_EVENT_COMMAND, the the description is the SQL of the command. Returns: event's description.
gda.types.ConnectionEventType getEventType() nothrowGet event's severity (from a simple notice to a fatal event) Returns: the event type
gda.types.ConnectionEventCode getGdaCode() nothrowRetrieve the code associated to event. Returns: the #GdaConnectionEventCode event's code
string getSource() nothrow
string getSqlstate() nothrowGet 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) nothrowSets 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) nothrowSets event's description. This function should not be called directly.
void setEventType(gda.types.ConnectionEventType type) nothrowSets event's severity (from a simple notice to a fatal event) This function should not be called directly.
void setGdaCode(gda.types.ConnectionEventCode code) nothrowSets event's gda code: that code is standardized by the libgda library. If you want to specify the corresponding provider specific code, use [gda.connection_event.ConnectionEvent.getCode] or [gda.c...
void setSource(string source) nothrowSets event's source; this function should not be called directly
void setSqlstate(string sqlstate) nothrowChanges the SQLSTATE code of event, this function should not be called directly
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder implementation template for gda.connection_event.ConnectionEvent

Methods
T type(int propval) nothrow
Methods
ConnectionEvent build() nothrowCreate object from builder. Returns: New object