summaryrefslogtreecommitdiff
path: root/test/testdb-postgresql.h
blob: 37b213933333a3a8d8af686dcd9f484e38aa0515 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef MYGRATE_TESTING_POSTGRESQL_H
#define MYGRATE_TESTING_POSTGRESQL_H

#include <output/pq/pqConn.h>

namespace MyGrate {
	namespace Testing {
		class PqConnDB : public Output::Pq::PqConn {
		public:
			PqConnDB();
			explicit PqConnDB(const std::string & schemaFile);
			~PqConnDB();

			Output::Pq::PqConn mock() const;

			std::string mockname;
			static std::size_t mocknum;
		};
	}
}

#endif