Skip to content

Commit 8a23f68

Browse files
authored
fix: Add GetMessageByTable to WriteMigrateTables (#1041)
1 parent c5b81a4 commit 8a23f68

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

message/write_message.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ func (m WriteMigrateTables) Exists(tableName string) bool {
5555
})
5656
}
5757

58+
func (m WriteMigrateTables) GetMessageByTable(tableName string) *WriteMigrateTable {
59+
for _, msg := range m {
60+
if msg.Table.Name == tableName {
61+
return msg
62+
}
63+
}
64+
return nil
65+
}
66+
5867
type WriteInsert struct {
5968
writeBaseMessage
6069
Record arrow.Record

0 commit comments

Comments
 (0)