-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add parameterize vreplgen fully, add some docs. #9
base: main
Are you sure you want to change the base?
Conversation
Supports multiple rules for a stream, as mentioned in the README Signed-off-by: Jacques Grove <aquarapid@gmail.com>
Signed-off-by: Jacques Grove <aquarapid@gmail.com>
Signed-off-by: Jacques Grove <aquarapid@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of nits.
vtctl := "./lvtctl.sh" | ||
tabletID := "test-400" | ||
dbName := "vt_merchant" | ||
argOffset := 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You shouldn't have to use argOffset
. It may be because you're calling flag.Parse
in init
. Can you move it into main
and see if it works correctly?
} | ||
|
||
var onDdlAction binlogdatapb.OnDDLAction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can change this to: onDDLAction := binlogdatapb.OnDDLAction_value[strings.ToUpper(onDDL)]
.
Note that go standards require DDL
to be capitalized inside variables.
Supports multiple rules for a stream, as mentioned in the README