File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,10 @@ export type BaseBinLogEvent = {
75
75
* Size of this event
76
76
*/
77
77
size : number ;
78
+ /**
79
+ * Unique identifier for table that this event relates to. This ID changes when a table is altered.
80
+ */
81
+ tableId : number ;
78
82
flags : number ;
79
83
useChecksum : boolean ;
80
84
} ;
@@ -107,7 +111,22 @@ export type BinLogUpdateEvent = Omit<BinLogMutationEvent, 'rows'> & {
107
111
} [ ] ;
108
112
} ;
109
113
110
- export type BinLogEvent = BinLogRotationEvent | BinLogGTIDLogEvent | BinLogXidEvent | BinLogMutationEvent ;
114
+ export type BinLogTableMapEvent = BaseBinLogEvent & {
115
+ schemaName : string ;
116
+ tableName : string ;
117
+ columnCount : number ;
118
+ /**
119
+ * Column types for this table. This is a list of MySQL column type ids
120
+ */
121
+ columnTypes : number [ ] ;
122
+ } ;
123
+
124
+ export type BinLogEvent =
125
+ | BinLogRotationEvent
126
+ | BinLogGTIDLogEvent
127
+ | BinLogXidEvent
128
+ | BinLogMutationEvent
129
+ | BinLogTableMapEvent ;
111
130
112
131
// @vlasky /mysql Connection
113
132
export interface MySQLConnection {
You can’t perform that action at this time.
0 commit comments