SybaseConnection
#include <SybaseConnection.h>
Protected Attributes | |
SybaseConnectionInternal * | d |
Protected Attributes inherited from KDbResultable | |
Private *const | d |
KDbResult | m_result |
Additional Inherited Members | |
Public Types inherited from KDbConnection | |
enum class | AlterTableNameOption { Default = 0 , DropDestination = 1 } |
typedef QFlags< AlterTableNameOption > | AlterTableNameOptions |
enum class | CreateTableOption { Default = 0 , DropDestination = 1 } |
typedef QFlags< CreateTableOption > | CreateTableOptions |
enum class | QueryRecordOption { AddLimitTo1 = 1 , Default = AddLimitTo1 } |
typedef QFlags< QueryRecordOption > | QueryRecordOptions |
Static Public Member Functions inherited from KDbConnection | |
static QStringList | kdbSystemTableNames () |
Public Attributes inherited from KDbConnection | |
H_INS_REC_ALL | |
Detailed Description
Provides database connection, allowing queries and data modification.
Definition at line 32 of file SybaseConnection.h.
Constructor & Destructor Documentation
◆ ~SybaseConnection()
|
virtual |
Definition at line 36 of file SybaseConnection.cpp.
◆ SybaseConnection()
|
protected |
Used by driver
Definition at line 30 of file SybaseConnection.cpp.
Member Function Documentation
◆ drv_afterInsert()
|
protectedvirtual |
Postprocessing (if any) required by drivers before execution of an Insert statement. Reimplement this method in your driver if there are any special processing steps to be executed after an Insert statement.
- See also
- drv_beforeInsert()
Reimplemented from KDbConnection.
◆ drv_afterUpdate()
|
protectedvirtual |
Postprocessing required by drivers before execution of an Insert statement. Reimplement this method in your driver if there are any special processing steps to be executed after an Update statement.
- See also
- drv_beforeUpdate()
Reimplemented from KDbConnection.
◆ drv_beforeInsert()
|
protectedvirtual |
Preprocessing (if any) required by drivers before execution of an Insert statement. Reimplement this method in your driver if there are any special processing steps to be executed before an Insert statement.
- See also
- drv_afterInsert()
Reimplemented from KDbConnection.
◆ drv_beforeUpdate()
|
protectedvirtual |
Preprocessing required by drivers before execution of an Update statement. Reimplement this method in your driver if there are any special processing steps to be executed before an Update statement.
- See also
- drv_afterUpdate()
Reimplemented from KDbConnection.
◆ drv_closeDatabase()
|
protectedvirtual |
For implementation: closes previously opened database using connection.
Implements KDbConnection.
Definition at line 117 of file SybaseConnection.cpp.
◆ drv_connect()
|
protectedvirtual |
Definition at line 41 of file SybaseConnection.cpp.
◆ drv_containsTable()
|
protectedvirtual |
- Todo
- move this somewhere to low level class (MIGRATION?)
Implements KDbConnection.
Definition at line 158 of file SybaseConnection.cpp.
◆ drv_createDatabase()
For implementation: creates new database using connection
Implements KDbConnection.
Definition at line 94 of file SybaseConnection.cpp.
◆ drv_disconnect()
|
protectedvirtual |
For implementation: disconnects database
- Returns
- true on success.
Implements KDbConnection.
Definition at line 72 of file SybaseConnection.cpp.
◆ drv_dropDatabase()
For implementation: drops database from the server using connection. After drop, database shouldn't be accessible anymore.
Implements KDbConnection.
Definition at line 123 of file SybaseConnection.cpp.
◆ drv_executeSql()
|
protectedvirtual |
Executes query for a raw SQL statement sql without returning resulting records.
It is useful mostly for INSERT queries but it is possible to execute SELECT queries when returned records can be ignored. The @sql should be is valid and properly escaped.
- Note
- Only use this method if you really need.
- See also
- executeSql
Implements KDbConnection.
Definition at line 129 of file SybaseConnection.cpp.
◆ drv_getDatabasesList()
|
protectedvirtual |
For reimplementation: loads list of databases' names available for this connection and adds these names to list. If your server is not able to offer such a list, consider reimplementing drv_databaseExists() instead. The method should return true only if there was no error on getting database names list from the server. Default implementation puts empty list into list and returns true.
- See also
- databaseNames
Reimplemented from KDbConnection.
Definition at line 87 of file SybaseConnection.cpp.
◆ drv_getTablesList()
|
protectedvirtual |
- Todo
- move this somewhere to low level class (MIGRATION?)
Definition at line 164 of file SybaseConnection.cpp.
◆ drv_lastInsertRecordId()
|
protectedvirtual |
Definition at line 134 of file SybaseConnection.cpp.
◆ drv_useDatabase()
|
protectedvirtual |
For implementation: opens existing database using connection
- Returns
- true on success, false on failure; sets cancelled to true if this action has been cancelled.
- Todo
- is here escaping needed?
Implements KDbConnection.
Definition at line 108 of file SybaseConnection.cpp.
◆ prepareQuery() [1/2]
|
override |
Definition at line 77 of file SybaseConnection.cpp.
◆ prepareQuery() [2/2]
|
override |
Definition at line 82 of file SybaseConnection.cpp.
◆ prepareStatement()
|
override |
Definition at line 169 of file SybaseConnection.cpp.
◆ serverResultName()
|
protectedvirtual |
Implemented for KDbResultable.
Reimplemented from KDbResultable.
Definition at line 146 of file SybaseConnection.cpp.
Member Data Documentation
◆ d
|
protected |
Definition at line 76 of file SybaseConnection.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.