blob: 01c9ef34a589910be31556211c0b34a599da2bd3 (
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_INPUT_REPLSTREAM_H
#define MYGRATE_INPUT_REPLSTREAM_H
#include "mysqlConn.h"
#include <cstdint>
#include <eventSourceBase.h>
#include <string>
namespace MyGrate {
class EventHandlerBase;
}
namespace MyGrate::Input {
class ReplicationStream : public EventSourceBase, MySQLConn {
public:
ReplicationStream(const char * const host, const char * const user, const char * const pass,
unsigned short port, uint64_t serverid, std::string filename, uint64_t position);
void readEvents(EventHandlerBase &) override;
private:
uint64_t serverid;
std::string filename;
uint64_t position;
};
}
#endif
|