Changeset View
Changeset View
Standalone View
Standalone View
src/drivers/postgresql/PostgresqlConnection.h
Show All 38 Lines | |||||
39 | 39 | | |||
40 | class PostgresqlConnection : public KDbConnection | 40 | class PostgresqlConnection : public KDbConnection | ||
41 | { | 41 | { | ||
42 | Q_DECLARE_TR_FUNCTIONS(PostgresqlConnection) | 42 | Q_DECLARE_TR_FUNCTIONS(PostgresqlConnection) | ||
43 | public: | 43 | public: | ||
44 | virtual ~PostgresqlConnection(); | 44 | virtual ~PostgresqlConnection(); | ||
45 | 45 | | |||
46 | //! @return a new query based on a query statement | 46 | //! @return a new query based on a query statement | ||
47 | KDbCursor* prepareQuery(const KDbEscapedString& sql, int cursor_options = 0) Q_DECL_OVERRIDE Q_REQUIRED_RESULT; | 47 | KDbCursor* prepareQuery(const KDbEscapedString& sql, | ||
48 | KDbCursor::Options options = KDbCursor::Option::None) Q_DECL_OVERRIDE Q_REQUIRED_RESULT; | ||||
48 | 49 | | |||
49 | //! @return a new query based on a query object | 50 | //! @return a new query based on a query object | ||
50 | KDbCursor* prepareQuery(KDbQuerySchema* query, int cursor_options = 0) Q_DECL_OVERRIDE Q_REQUIRED_RESULT; | 51 | KDbCursor* prepareQuery(KDbQuerySchema* query, | ||
52 | KDbCursor::Options options = KDbCursor::Option::None) Q_DECL_OVERRIDE Q_REQUIRED_RESULT; | ||||
51 | 53 | | |||
52 | KDbPreparedStatementInterface* prepareStatementInternal() Q_DECL_OVERRIDE Q_REQUIRED_RESULT; | 54 | KDbPreparedStatementInterface* prepareStatementInternal() Q_DECL_OVERRIDE Q_REQUIRED_RESULT; | ||
53 | 55 | | |||
54 | /*! Connection-specific string escaping. */ | 56 | /*! Connection-specific string escaping. */ | ||
55 | virtual KDbEscapedString escapeString(const QString& str) const; | 57 | virtual KDbEscapedString escapeString(const QString& str) const; | ||
56 | virtual KDbEscapedString escapeString(const QByteArray& str) const; | 58 | virtual KDbEscapedString escapeString(const QByteArray& str) const; | ||
57 | 59 | | |||
58 | private: | 60 | private: | ||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |