KDb
KDbConnection.h
136 bool useDatabase(const QString &dbName = QString(), bool kexiCompatible = true, bool *cancelled = nullptr,
198 If database is not connected (i.e. isConnected() is false) null KDbServerVersionInfo is returned. */
309 * without specifying a transaction context, are be performed in the context of this transaction.
377 KDbCursor can have optionally applied @a options (one of more selected from KDbCursor::Options).
492 If @a options includes AddLimitTo1 value, "LIMIT 1" clause is added to the query (this is the default).
515 If @a options includes AddLimitTo1 value, "LIMIT 1" clause is added to the query (this is the default).
537 If @a options includes AddLimitTo1 value, "LIMIT 1" clause is added to the query (this is the default).
577 If @a options includes AddLimitTo1 value, the query is optimized into "SELECT 1 FROM (sql) LIMIT 1"
597#define H_INS_REC(args) QSharedPointer<KDbSqlResult> insertRecord(KDbTableSchema* tableSchema args)
865 /*! Loads (potentially large) data block (e.g. xml form's representation), referenced by objectID
907 * a connection @a conn. The statement should be of type SELECT. For SQL data sources it does not
921 * i.e. tableSchema.connection() must not return @c nullptr. For SQL data sources only "COUNT(*)"
937 * i.e. querySchema->connection() must not return @c nullptr. For SQL data sources only "COUNT(*)"
1020 * To reimplement the method, set @a ok to @c true only on successfull obtaining of table names,
1329 bool updateRecord(KDbQuerySchema* query, KDbRecordData* data, KDbRecordEditBuffer* buf, bool useRecordId = false);
1331 bool insertRecord(KDbQuerySchema* query, KDbRecordData* data, KDbRecordEditBuffer* buf, bool getRecordId = false);
Database specific connection data, e.g. host, port.
Definition KDbConnectionData.shared.h:36
Generic options for a single connection. The options are accessible using key/value pairs....
Definition KDbConnectionOptions.h:36
The KDbConnectionProxy class gives access to protected (low-level) API of KDbConnection.
Definition KDbConnectionProxy.h:37
Provides database connection, allowing queries and data modification.
Definition KDbConnection.h:52
virtual KDbCursor * prepareQuery(KDbQuerySchema *query, KDbCursor::Options options=KDbCursor::Option::None)=0
virtual bool drv_closeDatabase()=0
virtual KDbPreparedStatementInterface * prepareStatementInternal()=0
virtual bool drv_getServerVersion(KDbServerVersionInfo *version)=0
virtual bool drv_isDatabaseUsed() const
Definition KDbConnection.h:1159
virtual bool drv_executeSql(const KDbEscapedString &sql)=0
Executes query for a raw SQL statement sql without returning resulting records.
virtual bool drv_useDatabase(const QString &dbName=QString(), bool *cancelled=nullptr, KDbMessageHandler *msgHandler=nullptr)=0
virtual KDbSqlResult * drv_prepareSql(const KDbEscapedString &sql)=0
Prepares query for a raw SQL statement sql with possibility of returning records.
virtual bool drv_disconnect()=0
virtual bool drv_createDatabase(const QString &dbName=QString())=0
virtual KDbCursor * prepareQuery(const KDbEscapedString &sql, KDbCursor::Options options=KDbCursor::Option::None)=0
virtual bool drv_dropDatabase(const QString &dbName=QString())=0
virtual bool drv_connect()=0
virtual bool drv_beforeInsert(const QString &tableName, KDbFieldList *fields)
Definition KDbConnection.h:1219
virtual bool drv_afterInsert(const QString &tableName, KDbFieldList *fields)
Definition KDbConnection.h:1231
virtual bool drv_afterUpdate(const QString &tableName, KDbFieldList *fields)
Definition KDbConnection.h:1255
virtual bool drv_beforeUpdate(const QString &tableName, KDbFieldList *fields)
Definition KDbConnection.h:1243
virtual tristate drv_changeFieldProperty(KDbTableSchema *table, KDbField *field, const QString &propertyName, const QVariant &value)
Definition KDbConnection.h:1408
virtual tristate drv_containsTable(const QString &tableName)=0
Definition KDbFieldList.h:34
Definition KDbMessageHandler.h:135
Definition KDbObject.shared.h:32
Prepared statement interface for backend-dependent implementations.
Definition KDbPreparedStatementInterface.h:32
Prepared database command for optimizing sequences of multiple database actions.
Definition KDbPreparedStatement.h:76
KDbQuerySchema provides information about database query.
Definition KDbQuerySchema.h:46
Structure for storing single record with type information.
Definition KDbRecordData.h:37
provides data for single edited database record
Definition KDbRecordEditBuffer.h:77
The KDbSqlResult class abstracts result of a raw SQL query preparation by KDbConnection::prepareSql()
Definition KDbSqlResult.h:45
An interface allowing to listen for table schema changes.
Definition KDbTableSchemaChangeListener.h:37
Definition KDbTableSchema.h:38
Internal prototype for storing transaction handle for KDbTransaction object.
Definition KDbTransactionData.h:36
KDbTransactionGuard class is a convenience class that simplifies handling transactions.
Definition KDbTransactionGuard.h:52
Definition KDbVersionInfo.shared.h:44
3-state logical type with three values: true, false and cancelled and convenient operators.
Definition KDbTristate.h:101
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:07 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:07 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.