diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-24 04:00:01 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-24 04:00:01 +0000 |
commit | b177499d168936da9e64a964beb22f6057880703 (patch) | |
tree | c093da732b44e713af9fad35ff70539455cc355a /libpqpp/pq-mock.h | |
parent | Use parent glibmm (diff) | |
download | libdbpp-postgresql-b177499d168936da9e64a964beb22f6057880703.tar.bz2 libdbpp-postgresql-b177499d168936da9e64a964beb22f6057880703.tar.xz libdbpp-postgresql-b177499d168936da9e64a964beb22f6057880703.zip |
PostgreSQL files prefixed with pq-
Diffstat (limited to 'libpqpp/pq-mock.h')
-rw-r--r-- | libpqpp/pq-mock.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libpqpp/pq-mock.h b/libpqpp/pq-mock.h new file mode 100644 index 0000000..e8b7366 --- /dev/null +++ b/libpqpp/pq-mock.h @@ -0,0 +1,22 @@ +#ifndef MOCKPQDATASOURCE_H +#define MOCKPQDATASOURCE_H + +#include <mockDatabase.h> +#include <boost/filesystem/path.hpp> +#include <visibility.h> + +namespace PQ { + class DLL_PUBLIC Mock : public DB::MockServerDatabase { + public: + Mock(const std::string & master, const std::string & name, const std::vector<boost::filesystem::path> & ss); + ~Mock(); + + DB::Connection * openConnection() const override; + + protected: + void DropDatabase() const override; + }; +} + +#endif + |