Skip to content

Commit

Permalink
fix(#14): Add FOREIGN key statement
Browse files Browse the repository at this point in the history
  • Loading branch information
borisershov committed Feb 9, 2024
1 parent 0b75856 commit 2cf6fa3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions modules/anonymizers/mysql/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,18 @@ func Init(ctx context.Context, r io.Reader, rules relfilter.Rules) io.Reader {
},
DataHandler: nil,
},
{
// Skip table keys description
Name: stateFieldDescriptionTailSkip,
Switch: fsm.Switch{
Trigger: []byte("FOREIGN"),
Delimiters: fsm.Delimiters{
L: []byte{' '},
R: []byte{' '},
},
},
DataHandler: nil,
},
{
Name: stateFieldsDescriptionName,
Switch: fsm.Switch{
Expand Down

0 comments on commit 2cf6fa3

Please sign in to comment.