diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-03-28 17:55:41 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-03-28 17:55:41 +0000 |
commit | 448720848b383639c37f5f0487efdf8c0f0ed433 (patch) | |
tree | 28fb708836b0030a7813d35d3213e6153bbb757c /libpqpp/pq-mock.h | |
parent | Fixes for tidy (diff) | |
download | libdbpp-postgresql-448720848b383639c37f5f0487efdf8c0f0ed433.tar.bz2 libdbpp-postgresql-448720848b383639c37f5f0487efdf8c0f0ed433.tar.xz libdbpp-postgresql-448720848b383639c37f5f0487efdf8c0f0ed433.zip |
Fixes for tidylibdbpp-postgresql-1.4.4
Diffstat (limited to 'libpqpp/pq-mock.h')
-rw-r--r-- | libpqpp/pq-mock.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libpqpp/pq-mock.h b/libpqpp/pq-mock.h index eccd5ae..4218f43 100644 --- a/libpqpp/pq-mock.h +++ b/libpqpp/pq-mock.h @@ -10,16 +10,18 @@ namespace PQ { class DLL_PUBLIC Mock : public DB::MockServerDatabase { public: Mock(const std::string & master, const std::string & name, const std::vector<std::filesystem::path> & ss); - ~Mock(); + ~Mock() override; - DB::ConnectionPtr openConnection() const override; + SPECIAL_MEMBERS_MOVE_RO(Mock); + + [[nodiscard]] DB::ConnectionPtr openConnection() const override; protected: void CreateNewDatabase() const override; void DropDatabase() const override; void SetTablesToUnlogged() const; - bool hasUnloggedTables() const; - bool hasCopyToProgram() const; + [[nodiscard]] bool hasUnloggedTables() const; + [[nodiscard]] bool hasCopyToProgram() const; const std::filesystem::path tablespacePath; const int serverVersion; }; |