summaryrefslogtreecommitdiff
path: root/libpqpp/pq-mock.h
diff options
context:
space:
mode:
Diffstat (limited to 'libpqpp/pq-mock.h')
-rw-r--r--libpqpp/pq-mock.h10
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;
};