Changeset View
Changeset View
Standalone View
Standalone View
src/drivers/mysql/MysqlConnection.h
Show All 30 Lines | |||||
31 | /*! @short Provides database connection, allowing queries and data modification. | 31 | /*! @short Provides database connection, allowing queries and data modification. | ||
32 | */ | 32 | */ | ||
33 | class MysqlConnection : public KDbConnection | 33 | class MysqlConnection : public KDbConnection | ||
34 | { | 34 | { | ||
35 | Q_DECLARE_TR_FUNCTIONS(MysqlConnection) | 35 | Q_DECLARE_TR_FUNCTIONS(MysqlConnection) | ||
36 | public: | 36 | public: | ||
37 | virtual ~MysqlConnection(); | 37 | virtual ~MysqlConnection(); | ||
38 | 38 | | |||
39 | KDbCursor* prepareQuery(const KDbEscapedString& sql, int cursor_options = 0) Q_DECL_OVERRIDE Q_REQUIRED_RESULT; | 39 | KDbCursor* prepareQuery(const KDbEscapedString& sql, | ||
40 | KDbCursor* prepareQuery(KDbQuerySchema* query, int cursor_options = 0) Q_DECL_OVERRIDE Q_REQUIRED_RESULT; | 40 | KDbCursor::Options options = KDbCursor::Option::None) Q_DECL_OVERRIDE Q_REQUIRED_RESULT; | ||
41 | KDbCursor* prepareQuery(KDbQuerySchema* query, | ||||
42 | KDbCursor::Options options = KDbCursor::Option::None) Q_DECL_OVERRIDE Q_REQUIRED_RESULT; | ||||
41 | 43 | | |||
42 | KDbPreparedStatementInterface* prepareStatementInternal() Q_DECL_OVERRIDE Q_REQUIRED_RESULT; | 44 | KDbPreparedStatementInterface* prepareStatementInternal() Q_DECL_OVERRIDE Q_REQUIRED_RESULT; | ||
43 | 45 | | |||
44 | protected: | 46 | protected: | ||
45 | /*! Used by driver */ | 47 | /*! Used by driver */ | ||
46 | MysqlConnection(KDbDriver *driver, const KDbConnectionData& connData, | 48 | MysqlConnection(KDbDriver *driver, const KDbConnectionData& connData, | ||
47 | const KDbConnectionOptions &options); | 49 | const KDbConnectionOptions &options); | ||
48 | 50 | | |||
Show All 32 Lines |