Skip to content

Commit 209d403

Browse files
committed
Added binlog query event type definition
1 parent 427ac6b commit 209d403

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

types/index.d.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,22 @@ export type BinLogTableMapEvent = BaseBinLogEvent & {
153153
columnTypes: number[];
154154
};
155155

156+
export type BinLogQueryEvent = BaseBinLogEvent & {
157+
query: string;
158+
executionTime: number;
159+
errorCode: number;
160+
schema: string;
161+
statusVars: string;
162+
};
163+
156164
export type BinLogEvent =
157165
| BinLogRotationEvent
158166
| BinLogGTIDLogEvent
159167
| BinLogXidEvent
160168
| BinLogRowEvent
161169
| BinLogRowUpdateEvent
162-
| BinLogTableMapEvent;
170+
| BinLogTableMapEvent
171+
| BinLogQueryEvent;
163172

164173
// @vlasky/mysql Connection
165174
export interface MySQLConnection {

0 commit comments

Comments
 (0)