diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-11-18 16:55:18 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-11-18 16:55:18 +0000 |
commit | 3bfa3dafe335479aade55507719071f7dceb0d8c (patch) | |
tree | 31d14618fc170a16f91f1f5c79e2ffd25f11b541 /libpqpp/pq-mock.h | |
parent | Fixes for tidy (diff) | |
download | libdbpp-postgresql-3bfa3dafe335479aade55507719071f7dceb0d8c.tar.bz2 libdbpp-postgresql-3bfa3dafe335479aade55507719071f7dceb0d8c.tar.xz libdbpp-postgresql-3bfa3dafe335479aade55507719071f7dceb0d8c.zip |
Clang format
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 - |