Gda.ConnectionEvent¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Connection event type |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
object |
r |
Class Details¶
- class Gda.ConnectionEvent(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- get_description()¶
- Returns:
self's description.
- Return type:
Get the description of the event. Note that is self's type is
Gda.ConnectionEventType.COMMAND
, the the description is the SQL of the command.
- get_event_type()¶
- Returns:
the event type
- Return type:
Get self's severity (from a simple notice to a fatal event)
- get_gda_code()¶
- Returns:
the
Gda.ConnectionEventCode
event’s code- Return type:
Retrieve the code associated to self.
- get_sqlstate()¶
- Returns:
self's SQL state.
- Return type:
Get the SQLSTATE value of self. 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 is no error, and the “HY000” (general error) value means an error but no better error code available.
- set_code(code)¶
- Parameters:
code (
int
) – a code.
Sets self'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.ConnectionEvent.get_gda_code
() instead.This function should not be called directly
- set_description(description)¶
- Parameters:
description (
str
orNone
) – a description, orNone
(to unset current description if any)
Sets self's description. This function should not be called directly.
- set_event_type(type)¶
- Parameters:
type (
Gda.ConnectionEventType
) – the severity of the event
Sets self's severity (from a simple notice to a fatal event) This function should not be called directly.
- set_gda_code(code)¶
- Parameters:
code (
Gda.ConnectionEventCode
) – a code
Sets self's gda code: that code is standardized by the libgda library. If you want to specify the corresponding provider specific code, use
Gda.ConnectionEvent.get_code
() orGda.ConnectionEvent.get_sqlstate
() instead.This function should not be called directly