Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

aquarapid
Copy link

Supports multiple rules for a stream, as mentioned in the README

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>
Copy link
Contributor

@sougou sougou left a 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
Copy link
Contributor

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants