KDb
SybaseConnection.cpp
100 KDbEscapedString allowNullsQuery = KDbEscapedString("sp_dboption %1, allow_nulls_by_default, true").arg(dbName);
108bool SybaseConnection::drv_useDatabase(const QString &dbName, bool *cancelled, KDbMessageHandler* msgHandler)
169KDbPreparedStatement SybaseConnection::prepareStatement(KDbPreparedStatement::StatementType type,
182 return drv_executeSql(KDbEscapedString("SET IDENTITY_INSERT %1 ON").arg(escapeIdentifier(table)));
188 // should we instead just set a flag when an identity_insert has taken place and only check for that
195 return drv_executeSql(KDbEscapedString("SET IDENTITY_INSERT %1 OFF").arg(escapeIdentifier(table)));
205 return drv_executeSql(KDbEscapedString("SET IDENTITY_UPDATE %1 ON").arg(escapeIdentifier(table)));
210 // should we instead just set a flag when an identity_update has taken place and only check for that
217 return drv_executeSql(KDbEscapedString("SET IDENTITY_UPDATE %1 OFF").arg(escapeIdentifier(table)));
Database specific connection data, e.g. host, port.
Definition KDbConnectionData.shared.h:36
Provides database connection, allowing queries and data modification.
Definition KDbConnection.h:52
virtual KDbEscapedString escapeString(const QString &str) const
Definition KDbConnection.cpp:3535
bool queryStringList(const KDbEscapedString &sql, QStringList *list, int column=0)
Definition KDbConnection.cpp:2539
tristate querySingleString(const KDbEscapedString &sql, QString *value, int column=0, QueryRecordOptions options=QueryRecordOption::Default)
Definition KDbConnection.cpp:2439
virtual bool drv_connect()=0
tristate querySingleNumber(const KDbEscapedString &sql, int *number, int column=0, QueryRecordOptions options=QueryRecordOption::Default)
Definition KDbConnection.cpp:2477
tristate resultExists(const KDbEscapedString &sql, QueryRecordOptions options=QueryRecordOption::Default)
Definition KDbConnection.cpp:2556
Definition KDbFieldList.h:34
KDbField::List * autoIncrementFields() const
Definition KDbFieldList.cpp:396
Definition KDbMessageHandler.h:135
Prepared database command for optimizing sequences of multiple database actions.
Definition KDbPreparedStatement.h:76
KDbQuerySchema provides information about database query.
Definition KDbQuerySchema.h:46
SybaseConnection(KDbDriver *driver, const KDbConnectionData &connData)
Definition SybaseConnection.cpp:30
virtual bool drv_executeSql(const KDbEscapedString &sql)
Executes query for a raw SQL statement sql without returning resulting records.
Definition SybaseConnection.cpp:129
virtual QString serverResultName() const
Implemented for KDbResultable.
Definition SybaseConnection.cpp:146
virtual bool drv_getTablesList(QStringList *list)
Definition SybaseConnection.cpp:164
virtual bool drv_createDatabase(const QString &dbName=QString())
Definition SybaseConnection.cpp:94
virtual bool drv_useDatabase(const QString &dbName=QString(), bool *cancelled=0, KDbMessageHandler *msgHandler=0)
Definition SybaseConnection.cpp:108
virtual bool drv_closeDatabase()
Definition SybaseConnection.cpp:117
virtual bool drv_dropDatabase(const QString &dbName=QString())
Definition SybaseConnection.cpp:123
virtual bool drv_containsTable(const QString &tableName)
Definition SybaseConnection.cpp:158
virtual bool drv_getDatabasesList(QStringList *list)
Definition SybaseConnection.cpp:87
KCOREADDONS_EXPORT unsigned int version()
KDB_EXPORT QString escapeIdentifier(const QString &string)
Definition KDb.cpp:1334
KCOREADDONS_EXPORT Result match(QStringView pattern, QStringView str)
KGuiItem ok()
bool isEmpty() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:11:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:11:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.