summaryrefslogtreecommitdiff
path: root/libmysqlpp/embeddedmy-connection.h
blob: c94d86a38e520e5bf563efd3c440974f20921fde (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
#ifndef EMBEDDEDMY_CONNECTION_H
#define EMBEDDEDMY_CONNECTION_H

#include "my-connection.h"
#include "embeddedmy-server.h"
#include "my-error.h"
#include <mysql.h>

namespace MySQL {
	namespace Embedded {
		class Connection : public ::MySQL::Connection {
			public:
				Connection(const std::string &);
				Connection(Server *, const std::string &);

				void	beginBulkUpload(const char *, const char *) override;
				void	endBulkUpload(const char *) override;
				size_t bulkUploadData(const char *, size_t) const override;

			private:
				ServerPtr server;
		};
	}
}

#endif