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);
Definition: KDbVersionInfo.shared.h:43
The KDbSqlResult class abstracts result of a raw SQL query preparation by KDbConnection::prepareSql()
Definition: KDbSqlResult.h:44
An interface allowing to listen for table schema changes.
Definition: KDbTableSchemaChangeListener.h:36
virtual bool drv_isDatabaseUsed() const
Definition: KDbConnection.h:1159
virtual bool drv_afterUpdate(const QString &tableName, KDbFieldList *fields)
Definition: KDbConnection.h:1255
virtual tristate drv_changeFieldProperty(KDbTableSchema *table, KDbField *field, const QString &propertyName, const QVariant &value)
Definition: KDbConnection.h:1408
Definition: KDbObject.shared.h:31
Definition: KDbVersionInfo.shared.h:87
virtual bool drv_beforeUpdate(const QString &tableName, KDbFieldList *fields)
Definition: KDbConnection.h:1243
KDbTransactionGuard class is a convenience class that simplifies handling transactions.
Definition: KDbTransactionGuard.h:51
provides data for single edited database record
Definition: KDbRecordEditBuffer.h:76
3-state logical type with three values: true, false and cancelled and convenient operators.
Definition: KDbTristate.h:100
virtual bool drv_beforeInsert(const QString &tableName, KDbFieldList *fields)
Definition: KDbConnection.h:1219
Definition: KDbFieldList.h:33
virtual bool drv_afterInsert(const QString &tableName, KDbFieldList *fields)
Definition: KDbConnection.h:1231
Prepared statement interface for backend-dependent implementations.
Definition: KDbPreparedStatementInterface.h:31
Structure for storing single record with type information.
Definition: KDbRecordData.h:36
KDbQuerySchema provides information about database query.
Definition: KDbQuerySchema.h:45
Definition: KDbTableOrQuerySchema.h:33
Database specific connection data, e.g. host, port.
Definition: KDbConnectionData.shared.h:35
Prepared database command for optimizing sequences of multiple database actions.
Definition: KDbPreparedStatement.h:75
Generic options for a single connection. The options are accessible using key/value pairs....
Definition: KDbConnectionOptions.h:35
Definition: KDbMessageHandler.h:134
Provides database connection, allowing queries and data modification.
Definition: KDbConnection.h:51
The KDbConnectionProxy class gives access to protected (low-level) API of KDbConnection.
Definition: KDbConnectionProxy.h:36
Internal prototype for storing transaction handle for KDbTransaction object.
Definition: KDbTransactionData.h:35
Definition: KDbTableSchema.h:37
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Sep 22 2023 04:08:59 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Sep 22 2023 04:08:59 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.