summaryrefslogtreecommitdiff
path: root/lib/row.h
blob: 908a52f11b360bacf7089baf7934c13de64483c7 (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
#ifndef MYGRATE_ROW_H
#define MYGRATE_ROW_H

#include "dbTypes.h"
#include <utility>
#include <vector>
namespace MyGrate {
	class RawDataReader;
}
struct st_mariadb_rpl_rows_event;
struct st_mariadb_rpl_table_map_event;

namespace MyGrate {
	class Row : public std::vector<DbValue> {
	public:
		using Rows = std::vector<Row>;
		static Rows fromRowsEvent(const st_mariadb_rpl_rows_event &, const st_mariadb_rpl_table_map_event &);

		using std::vector<DbValue>::vector;
		Row(const st_mariadb_rpl_rows_event &, const st_mariadb_rpl_table_map_event &, MyGrate::RawDataReader & md,
				MyGrate::RawDataReader & data);
	};
}

#endif