Changeset View
Changeset View
Standalone View
Standalone View
src/KDbConnectionProxy.cpp
Show First 20 Lines • Show All 239 Lines • ▼ Show 20 Line(s) | 239 | { | |||
---|---|---|---|---|---|
240 | return d->connection->setAutoCommit(on); | 240 | return d->connection->setAutoCommit(on); | ||
241 | } | 241 | } | ||
242 | 242 | | |||
243 | KDbEscapedString KDbConnectionProxy::escapeString(const QString& str) const | 243 | KDbEscapedString KDbConnectionProxy::escapeString(const QString& str) const | ||
244 | { | 244 | { | ||
245 | return d->connection->escapeString(str); | 245 | return d->connection->escapeString(str); | ||
246 | } | 246 | } | ||
247 | 247 | | |||
248 | KDbCursor* KDbConnectionProxy::prepareQuery(const KDbEscapedString& sql, int cursor_options) | 248 | KDbCursor* KDbConnectionProxy::prepareQuery(const KDbEscapedString& sql, KDbCursor::Options options) | ||
249 | { | 249 | { | ||
250 | return d->connection->prepareQuery(sql, cursor_options); | 250 | return d->connection->prepareQuery(sql, options); | ||
251 | } | 251 | } | ||
252 | 252 | | |||
253 | KDbCursor* KDbConnectionProxy::prepareQuery(KDbQuerySchema* query, int cursor_options) | 253 | KDbCursor* KDbConnectionProxy::prepareQuery(KDbQuerySchema* query, KDbCursor::Options options) | ||
254 | { | 254 | { | ||
255 | return d->connection->prepareQuery(query, cursor_options); | 255 | return d->connection->prepareQuery(query, options); | ||
256 | } | 256 | } | ||
257 | 257 | | |||
258 | KDbCursor* KDbConnectionProxy::prepareQuery(KDbTableSchema* table, int cursor_options) | 258 | KDbCursor* KDbConnectionProxy::prepareQuery(KDbTableSchema* table, KDbCursor::Options options) | ||
259 | { | 259 | { | ||
260 | return d->connection->prepareQuery(table, cursor_options); | 260 | return d->connection->prepareQuery(table, options); | ||
261 | } | 261 | } | ||
262 | 262 | | |||
263 | KDbCursor* KDbConnectionProxy::executeQuery(const KDbEscapedString& sql, int cursor_options) | 263 | KDbCursor* KDbConnectionProxy::executeQuery(const KDbEscapedString& sql, KDbCursor::Options options) | ||
264 | { | 264 | { | ||
265 | return d->connection->executeQuery(sql, cursor_options); | 265 | return d->connection->executeQuery(sql, options); | ||
266 | } | 266 | } | ||
267 | 267 | | |||
268 | KDbCursor* KDbConnectionProxy::executeQuery(KDbQuerySchema* query, const QList<QVariant>& params, | 268 | KDbCursor* KDbConnectionProxy::executeQuery(KDbQuerySchema* query, const QList<QVariant>& params, | ||
269 | int cursor_options) | 269 | KDbCursor::Options options) | ||
270 | { | 270 | { | ||
271 | return d->connection->executeQuery(query, params, cursor_options); | 271 | return d->connection->executeQuery(query, params, options); | ||
272 | } | 272 | } | ||
273 | 273 | | |||
274 | KDbCursor* KDbConnectionProxy::executeQuery(KDbQuerySchema* query, int cursor_options) | 274 | KDbCursor* KDbConnectionProxy::executeQuery(KDbQuerySchema* query, KDbCursor::Options options) | ||
275 | { | 275 | { | ||
276 | return d->connection->executeQuery(query, cursor_options); | 276 | return d->connection->executeQuery(query, options); | ||
277 | } | 277 | } | ||
278 | 278 | | |||
279 | KDbCursor* KDbConnectionProxy::executeQuery(KDbTableSchema* table, int cursor_options) | 279 | KDbCursor* KDbConnectionProxy::executeQuery(KDbTableSchema* table, KDbCursor::Options options) | ||
280 | { | 280 | { | ||
281 | return d->connection->executeQuery(table, cursor_options); | 281 | return d->connection->executeQuery(table, options); | ||
282 | } | 282 | } | ||
283 | 283 | | |||
284 | bool KDbConnectionProxy::deleteCursor(KDbCursor *cursor) | 284 | bool KDbConnectionProxy::deleteCursor(KDbCursor *cursor) | ||
285 | { | 285 | { | ||
286 | return d->connection->deleteCursor(cursor); | 286 | return d->connection->deleteCursor(cursor); | ||
287 | } | 287 | } | ||
288 | 288 | | |||
289 | KDbTableSchema* KDbConnectionProxy::tableSchema(int tableId) | 289 | KDbTableSchema* KDbConnectionProxy::tableSchema(int tableId) | ||
▲ Show 20 Lines • Show All 544 Lines • Show Last 20 Lines |