Changeset View
Changeset View
Standalone View
Standalone View
src/drivers/mysql/MysqlConnection.cpp
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Line(s) | 72 | //! @todo this is hardcoded for now; define api for retrieving variables and use this API... | |||
---|---|---|---|---|---|
87 | return true; | 87 | return true; | ||
88 | } | 88 | } | ||
89 | 89 | | |||
90 | bool MysqlConnection::drv_disconnect() | 90 | bool MysqlConnection::drv_disconnect() | ||
91 | { | 91 | { | ||
92 | return d->db_disconnect(); | 92 | return d->db_disconnect(); | ||
93 | } | 93 | } | ||
94 | 94 | | |||
95 | KDbCursor* MysqlConnection::prepareQuery(const KDbEscapedString& sql, int cursor_options) | 95 | KDbCursor* MysqlConnection::prepareQuery(const KDbEscapedString& sql, KDbCursor::Options options) | ||
96 | { | 96 | { | ||
97 | return new MysqlCursor(this, sql, cursor_options); | 97 | return new MysqlCursor(this, sql, options); | ||
98 | } | 98 | } | ||
99 | 99 | | |||
100 | KDbCursor* MysqlConnection::prepareQuery(KDbQuerySchema* query, int cursor_options) | 100 | KDbCursor* MysqlConnection::prepareQuery(KDbQuerySchema* query, KDbCursor::Options options) | ||
101 | { | 101 | { | ||
102 | return new MysqlCursor(this, query, cursor_options); | 102 | return new MysqlCursor(this, query, options); | ||
103 | } | 103 | } | ||
104 | 104 | | |||
105 | bool MysqlConnection::drv_getDatabasesList(QStringList* list) | 105 | bool MysqlConnection::drv_getDatabasesList(QStringList* list) | ||
106 | { | 106 | { | ||
107 | mysqlDebug(); | 107 | mysqlDebug(); | ||
108 | list->clear(); | 108 | list->clear(); | ||
109 | MYSQL_RES *res = mysql_list_dbs(d->mysql, 0); | 109 | MYSQL_RES *res = mysql_list_dbs(d->mysql, 0); | ||
110 | if (res != 0) { | 110 | if (res != 0) { | ||
▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines |