1 #ifndef BZS_DB_TRANSACTD_CONNECTIONRECORD_H
2 #define BZS_DB_TRANSACTD_CONNECTIONRECORD_H
21 #include <bzs/env/compiler.h>
22 #include <bzs/env/crosscompile.h>
42 #define SLAVE_STATUS_IO_STATE 0
43 #define SLAVE_STATUS_MASTER_HOST 1
44 #define SLAVE_STATUS_MASTER_USER 2
45 #define SLAVE_STATUS_MASTER_PORT 3
46 #define SLAVE_STATUS_CONNECT_RETRY 4
47 #define SLAVE_STATUS_MASTER_LOG_FILE 5
48 #define SLAVE_STATUS_READ_MASTER_LOG_POS 6
49 #define SLAVE_STATUS_RELAY_LOG_FILE 7
50 #define SLAVE_STATUS_RELAY_LOG_POS 8
51 #define SLAVE_STATUS_RELAY_MASTER_LOG_FILE 9
52 #define SLAVE_STATUS_SLAVE_IO_RUNNING 10
53 #define SLAVE_STATUS_SLAVE_SQL_RUNNING 11
54 #define SLAVE_STATUS_REPLICATE_DO_DB 12
55 #define SLAVE_STATUS_REPLICATE_IGNORE_DB 13
56 #define SLAVE_STATUS_REPLICATE_DO_TABLE 14
57 #define SLAVE_STATUS_REPLICATE_IGNORE_TABLE 15
58 #define SLAVE_STATUS_REPLICATE_WILD_DO_TABLE 16
59 #define SLAVE_STATUS_REPLICATE_WILD_IGNORE_TABLE 17
60 #define SLAVE_STATUS_LAST_ERRNO 18
61 #define SLAVE_STATUS_LAST_ERROR 19
62 #define SLAVE_STATUS_SKIP_COUNER 20
63 #define SLAVE_STATUS_EXEC_MASTER_LOG_POS 21
64 #define SLAVE_STATUS_RELAY_LOG_SPACE 22
65 #define SLAVE_STATUS_UNTIL_CONDITION 23
66 #define SLAVE_STATUS_UNTIL_LOG_FILE 24
67 #define SLAVE_STATUS_UNTIL_LOG_POS 25
68 #define SLAVE_STATUS_MASTER_SSL_ALLOWED 26
69 #define SLAVE_STATUS_MASTER_SSL_CA_FILE 27
70 #define SLAVE_STATUS_MASTER_SSL_CA_PATH 28
71 #define SLAVE_STATUS_MASTER_SSL_CERT 29
72 #define SLAVE_STATUS_MASTER_SSL_CIPHER 30
73 #define SLAVE_STATUS_MASTER_SSL_KEY 31
74 #define SLAVE_STATUS_SECONDS_BEHIND_MASTER 32
75 #define SLAVE_STATUS_MASTER_SSL_VERIFY_SERVER_CERT 33
76 #define SLAVE_STATUS_LAST_IO_ERRNO 34
77 #define SLAVE_STATUS_LAST_IO_ERROR 35
78 #define SLAVE_STATUS_LAST_SQL_ERRNO 36
79 #define SLAVE_STATUS_LAST_SQL_ERROR 37
80 #define SLAVE_STATUS_REPLICATE_IGNORE_SERVER_IDS 38
81 #define SLAVE_STATUS_MASTER_SERVER_ID 39
82 #define SLAVE_STATUS_DEFAULT_SIZE 40
85 # define SLAVE_STATUS_MA_MASTER_SSL_CRL 40
86 # define SLAVE_STATUS_MA_MASTER_SSL_CRLPATH 41
87 # define SLAVE_STATUS_MA_USING_GTID 42
88 # define SLAVE_STATUS_MA_GTID_IO_POS 43
89 # define SLAVE_STATUS_MA_REPLICATE_DO_DOMAIN_IDS 44
90 # define SLAVE_STATUS_MA_REPLICATE_IGNORE_DOMAIN_IDS 45
91 # define SLAVE_STATUS_MA_PARALLEL_MODE 46
92 # define SLAVE_STATUS_MA_RETRIED_TRANSACTIONS 47
93 # define SLAVE_STATUS_MA_MAX_RELAY_LOG_SIZE 48
94 # define SLAVE_STATUS_MA_EXECUTED_LOG_ENTRIES 49
95 # define SLAVE_STATUS_MA_SLAVE_RECV_HEARTBEATS 50
96 # define SLAVE_STATUS_MA_SLAVE_HEARTBEATS_PERIOD 51
97 # define SLAVE_STATUS_MA_GTID_SLAVE_POS 52
98 # define SLAVE_STATUS_MA_SIZE 53
100 # define SLAVE_STATUS_MASTER_UUID 40
101 # define SLAVE_STATUS_MASTER_INFO_FILE 41
102 # define SLAVE_STATUS_SQL_DELAY 42
103 # define SLAVE_STATUS_SQL_REMAINING_DELAY 43
104 # define SLAVE_STATUS_SQL_RUNNING_STATE 44
105 # define SLAVE_STATUS_MASTER_RETRY_COUNT 45
106 # define SLAVE_STATUS_MASTER_BIND 46
107 # define SLAVE_STATUS_LAST_IO_ERROR_TIMESTAMP 47
108 # define SLAVE_STATUS_LAST_SQL_ERROR_TIMESTAMP 48
109 # define SLAVE_STATUS_MASTER_SSL_CRL 49
110 # define SLAVE_STATUS_MASTER_SSL_CRLPATH 50
111 # define SLAVE_STATUS_RETRIEVED_GTID_SET 51
112 # define SLAVE_STATUS_EXECUTED_GTID_SET 52
113 # define SLAVE_STATUS_AUTO_POSITION 53
114 # define SLAVE_STATUS_REPLICATE_REWRITE_DB 54
115 # define SLAVE_STATUS_CHANNEL_NAME 55
116 # define SLAVE_STATUS_SIZE 56
118 #define SLAVE_STATUS_EX_MA_SIZE SLAVE_STATUS_MA_SIZE - SLAVE_STATUS_DEFAULT_SIZE
119 #define SLAVE_STATUS_EX_SIZE SLAVE_STATUS_SIZE - SLAVE_STATUS_DEFAULT_SIZE
124 #define CON_REC_VALUE_SIZE 67
182 inline const wchar_t* t_name(
wchar_t* buf,
int size)
const
184 MultiByteToWideChar(CP_UTF8, 0,
name, -1, buf, size);
187 const wchar_t*
value(
wchar_t* buf,
int size)
const
195 MultiByteToWideChar(CP_UTF8, 0,
name, -1, buf, size);
198 MultiByteToWideChar(CP_UTF8, 0, (
char*)
longValue, -1, buf, size);
206 const char*
value(
char* buf,
int size)
const
213 strcpy_s(buf, size,
name);
229 #ifdef MYSQL_DYNAMIC_PLUGIN
230 typedef std::vector<record> records;
241 #endif // BZS_DB_TRANSACTD_CONNECTIONRECORD_H
unsigned int readCount
Definition: connectionRecord.h:155
pragma_pop
Definition: btrDate.h:107
char inTransaction
Definition: connectionRecord.h:170
unsigned int db
Definition: connectionRecord.h:154
char openEx
Definition: connectionRecord.h:174
__int64 longValue
Definition: connectionRecord.h:144
unsigned int insCount
Definition: connectionRecord.h:148
unsigned int id
Definition: connectionRecord.h:151
char status
Definition: connectionRecord.h:167
char dummy
Definition: connectionRecord.h:176
const char * value(char *buf, int size) const
Definition: connectionRecord.h:206
char openNormal
Definition: connectionRecord.h:172
unsigned int delCount
Definition: connectionRecord.h:147
char openReadOnlyEx
Definition: connectionRecord.h:175
record()
Definition: connectionRecord.h:128
char inSnapshot
Definition: connectionRecord.h:171
char openReadOnly
Definition: connectionRecord.h:173
const char * value_ptr() const
Definition: connectionRecord.h:218
void reset()
Definition: connectionRecord.h:132
pragma_pack1
Definition: btrDate.h:36
unsigned int type
Definition: connectionRecord.h:161
unsigned int updCount
Definition: connectionRecord.h:160
char name[CON_REC_VALUE_SIZE]
Definition: connectionRecord.h:164
接続管理マネージャ結果レコード
Definition: connectionRecord.h:126
__int64 conId
Definition: connectionRecord.h:143
unsigned int port
Definition: connectionRecord.h:156