diff options
Diffstat (limited to 'libpqpp/pq-mock.h')
-rw-r--r-- | libpqpp/pq-mock.h | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/libpqpp/pq-mock.h b/libpqpp/pq-mock.h index 4218f43..a8d9143 100644 --- a/libpqpp/pq-mock.h +++ b/libpqpp/pq-mock.h @@ -1,31 +1,30 @@ #ifndef MOCKPQDATASOURCE_H #define MOCKPQDATASOURCE_H -#include <mockDatabase.h> +#include "pq-connection.h" #include <filesystem> +#include <mockDatabase.h> #include <visibility.h> -#include "pq-connection.h" 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() override; + public: + Mock(const std::string & master, const std::string & name, const std::vector<std::filesystem::path> & ss); + ~Mock() override; - SPECIAL_MEMBERS_MOVE_RO(Mock); + SPECIAL_MEMBERS_MOVE_RO(Mock); - [[nodiscard]] DB::ConnectionPtr openConnection() const override; + [[nodiscard]] DB::ConnectionPtr openConnection() const override; - protected: - void CreateNewDatabase() const override; - void DropDatabase() const override; - void SetTablesToUnlogged() const; - [[nodiscard]] bool hasUnloggedTables() const; - [[nodiscard]] bool hasCopyToProgram() const; - const std::filesystem::path tablespacePath; - const int serverVersion; + protected: + void CreateNewDatabase() const override; + void DropDatabase() const override; + void SetTablesToUnlogged() const; + [[nodiscard]] bool hasUnloggedTables() const; + [[nodiscard]] bool hasCopyToProgram() const; + const std::filesystem::path tablespacePath; + const int serverVersion; }; } #endif - |