Changeset View
Changeset View
Standalone View
Standalone View
src/KDbConnectionProxy.h
Show First 20 Lines • Show All 191 Lines • ▼ Show 20 Line(s) | 38 | public: | |||
---|---|---|---|---|---|
192 | 192 | | |||
193 | bool queryStringList(KDbQuerySchema* query, QStringList* list, | 193 | bool queryStringList(KDbQuerySchema* query, QStringList* list, | ||
194 | const QList<QVariant>& params, int column = 0); | 194 | const QList<QVariant>& params, int column = 0); | ||
195 | 195 | | |||
196 | tristate resultExists(const KDbEscapedString& sql, bool addLimitTo1 = true); | 196 | tristate resultExists(const KDbEscapedString& sql, bool addLimitTo1 = true); | ||
197 | 197 | | |||
198 | tristate isEmpty(KDbTableSchema* table); | 198 | tristate isEmpty(KDbTableSchema* table); | ||
199 | 199 | | |||
200 | KDbEscapedString recentSQLString() const override; | 200 | KDbEscapedString recentSqlString() const override; | ||
201 | 201 | | |||
202 | //PROTOTYPE: | 202 | //PROTOTYPE: | ||
203 | #define A , const QVariant& | 203 | #define A , const QVariant& | ||
204 | #define H_INS_REC(args) bool insertRecord(KDbTableSchema* tableSchema args) | 204 | #define H_INS_REC(args) bool insertRecord(KDbTableSchema* tableSchema args) | ||
205 | #define H_INS_REC_ALL \ | 205 | #define H_INS_REC_ALL \ | ||
206 | H_INS_REC(A); \ | 206 | H_INS_REC(A); \ | ||
207 | H_INS_REC(A A); \ | 207 | H_INS_REC(A A); \ | ||
208 | H_INS_REC(A A A); \ | 208 | H_INS_REC(A A A); \ | ||
Show All 39 Lines | 222 | #undef A | |||
248 | KDbField* findSystemFieldName(const KDbFieldList& fieldlist); | 248 | KDbField* findSystemFieldName(const KDbFieldList& fieldlist); | ||
249 | 249 | | |||
250 | QString anyAvailableDatabaseName() override; | 250 | QString anyAvailableDatabaseName() override; | ||
251 | 251 | | |||
252 | void setAvailableDatabaseName(const QString& dbName); | 252 | void setAvailableDatabaseName(const QString& dbName); | ||
253 | 253 | | |||
254 | bool useTemporaryDatabaseIfNeeded(QString* name); | 254 | bool useTemporaryDatabaseIfNeeded(QString* name); | ||
255 | 255 | | |||
256 | KDbSqlResult* executeSQL(const KDbEscapedString& sql) Q_REQUIRED_RESULT; | 256 | QSharedPointer<KDbSqlResult> prepareSql(const KDbEscapedString& sql) Q_REQUIRED_RESULT; | ||
257 | 257 | | |||
258 | bool executeVoidSQL(const KDbEscapedString& sql); | 258 | bool executeSql(const KDbEscapedString& sql); | ||
259 | 259 | | |||
260 | bool storeObjectData(KDbObject* object); | 260 | bool storeObjectData(KDbObject* object); | ||
261 | 261 | | |||
262 | bool storeNewObjectData(KDbObject* object); | 262 | bool storeNewObjectData(KDbObject* object); | ||
263 | 263 | | |||
264 | tristate loadObjectData(int id, KDbObject* object); | 264 | tristate loadObjectData(int id, KDbObject* object); | ||
265 | 265 | | |||
266 | tristate loadObjectData(int type, const QString& name, KDbObject* object); | 266 | tristate loadObjectData(int type, const QString& name, KDbObject* object); | ||
Show All 32 Lines | |||||
299 | bool drv_dropTable(const QString& tableName) override; | 299 | bool drv_dropTable(const QString& tableName) override; | ||
300 | 300 | | |||
301 | tristate dropTable(KDbTableSchema* tableSchema, bool alsoRemoveSchema); | 301 | tristate dropTable(KDbTableSchema* tableSchema, bool alsoRemoveSchema); | ||
302 | 302 | | |||
303 | bool setupObjectData(const KDbRecordData& data, KDbObject* object); | 303 | bool setupObjectData(const KDbRecordData& data, KDbObject* object); | ||
304 | 304 | | |||
305 | KDbField* setupField(const KDbRecordData& data); | 305 | KDbField* setupField(const KDbRecordData& data); | ||
306 | 306 | | |||
307 | KDbSqlResult* drv_executeSQL(const KDbEscapedString& sql) override Q_REQUIRED_RESULT; | 307 | KDbSqlResult* drv_prepareSql(const KDbEscapedString& sql) override Q_REQUIRED_RESULT; | ||
308 | 308 | | |||
309 | bool drv_executeVoidSQL(const KDbEscapedString& sql) override; | 309 | bool drv_executeSql(const KDbEscapedString& sql) override; | ||
310 | 310 | | |||
311 | bool drv_getDatabasesList(QStringList* list) override; | 311 | bool drv_getDatabasesList(QStringList* list) override; | ||
312 | 312 | | |||
313 | bool drv_databaseExists(const QString &dbName, bool ignoreErrors = true) override; | 313 | bool drv_databaseExists(const QString &dbName, bool ignoreErrors = true) override; | ||
314 | 314 | | |||
315 | bool drv_createDatabase(const QString &dbName = QString()) override; | 315 | bool drv_createDatabase(const QString &dbName = QString()) override; | ||
316 | 316 | | |||
317 | bool drv_useDatabase(const QString &dbName = QString(), bool *cancelled = nullptr, | 317 | bool drv_useDatabase(const QString &dbName = QString(), bool *cancelled = nullptr, | ||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |