From 24cc85beab49be38416c47e13e20c2461e863cbb Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 13 Jun 2021 01:43:09 +0100 Subject: Create and drop PostgreSQL mock DBs as needed --- test/testdb-postgresql.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/testdb-postgresql.h (limited to 'test/testdb-postgresql.h') diff --git a/test/testdb-postgresql.h b/test/testdb-postgresql.h new file mode 100644 index 0000000..fc73d2a --- /dev/null +++ b/test/testdb-postgresql.h @@ -0,0 +1,21 @@ +#ifndef MYGRATE_TESTING_POSTGRESQL_H +#define MYGRATE_TESTING_POSTGRESQL_H + +#include + +namespace MyGrate { + namespace Testing { + class PqConnDB : public Output::Pq::PqConn { + public: + PqConnDB(); + ~PqConnDB(); + + Output::Pq::PqConn mock() const; + + std::string mockname; + static std::size_t mocknum; + }; + } +} + +#endif -- cgit v1.2.3