summaryrefslogtreecommitdiff
path: root/test/testdb-mysql.h
blob: c77ade2e82c7716aea3a4668456274487bf9f1c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef MYGRATE_TESTING_MYSQL_H
#define MYGRATE_TESTING_MYSQL_H

#include <input/mysqlConn.h>

namespace MyGrate {
	namespace Testing {
		class MySQLDB : public Input::MySQLConn {
		public:
			MySQLDB();
			~MySQLDB();

			Input::MySQLConn mock() const;

			std::string mockname;

			static const char * const SERVER;
			static const char * const USER;
			static const char * const PASSWORD;
			static const unsigned short PORT;

		private:
			static std::size_t mocknum;
		};
	}
}

#endif