summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-10-17 22:10:14 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-10-17 22:10:14 +0100
commite0aec7ec71ad263fa7530d436d733b1e4996f7f5 (patch)
treededacdbdeb185c85cdc597b4cd3f972b51f00923
parentRestructure alias all list and add missing things (diff)
downloadlibdbpp-postgresql-e0aec7ec71ad263fa7530d436d733b1e4996f7f5.tar.bz2
libdbpp-postgresql-e0aec7ec71ad263fa7530d436d733b1e4996f7f5.tar.xz
libdbpp-postgresql-e0aec7ec71ad263fa7530d436d733b1e4996f7f5.zip
Add override attributes
-rw-r--r--libpqpp/connection.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/libpqpp/connection.h b/libpqpp/connection.h
index bb291b1..1b2824d 100644
--- a/libpqpp/connection.h
+++ b/libpqpp/connection.h
@@ -10,22 +10,23 @@ namespace PQ {
Connection(const std::string & info);
~Connection();
- void finish() const;
- int beginTx() const;
- int commitTx() const;
- int rollbackTx() const;
- bool inTx() const;
- void ping() const;
+ void finish() const override;
+ int beginTx() const override;
+ int commitTx() const override;
+ int rollbackTx() const override;
+ bool inTx() const override;
+ void ping() const override;
void execute(const std::string & sql) const override;
- DB::BulkDeleteStyle bulkDeleteStyle() const;
- DB::BulkUpdateStyle bulkUpdateStyle() const;
+ DB::BulkDeleteStyle bulkDeleteStyle() const override;
+ DB::BulkUpdateStyle bulkUpdateStyle() const override;
- DB::SelectCommand * newSelectCommand(const std::string & sql) const;
- DB::ModifyCommand * newModifyCommand(const std::string & sql) const;
+ DB::SelectCommand * newSelectCommand(const std::string & sql) const override;
+ DB::ModifyCommand * newModifyCommand(const std::string & sql) const override;
- void beginBulkUpload(const char *, const char *) const;
- void endBulkUpload(const char *) const;
- size_t bulkUploadData(const char *, size_t) const;
+
+ void beginBulkUpload(const char *, const char *) const override;
+ void endBulkUpload(const char *) const override;
+ size_t bulkUploadData(const char *, size_t) const override;
PGresult * checkResult(PGresult * res, int expected, int alternative = -1) const;
void checkResultFree(PGresult * res, int expected, int alternative = -1) const;