-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Print human-readable tables for CLI queries. #1523
Conversation
Reviewed 12 of 12 files at r1. go/vt/vtctl/query.go, line 501 [r1] (raw file): test/tabletmanager.py, line 109 [r1] (raw file):
That means the first letter should be lowercase. Do we want to change it to match that style? You just have to add the json tag to the struct for that? Comments from the review on Reviewable.io |
I didn't write a test for human-readable output yet because I didn't want it to be a change-detector test. I'll think about it again and see what makes sense. |
Review status: all files reviewed at latest revision, 2 unresolved discussions. go/vt/vtctl/query.go, line 501 [r1] (raw file): test/tabletmanager.py, line 109 [r1] (raw file): Comments from the review on Reviewable.io |
Reviewed 1 of 1 files at r2. test/tabletmanager.py, line 109 [r1] (raw file): If it's not too much work for you, let's make all lowercase? I'll let you decide. Comments from the review on Reviewable.io |
The table output is similar to the `mysql` CLI.
Review status: 4 of 16 files reviewed at latest revision, 1 unresolved discussion. test/tabletmanager.py, line 109 [r1] (raw file): https://github.com/youtube/vitess/blob/master/go/vt/proto/query/query.pb.go#L263 Since querytypes.Result contains querypb.Fields, we have to follow the protobuf convention to keep it consistent. Comments from the review on Reviewable.io |
LGTM Thanks for updating the JSON fields! Reviewed 4 of 4 files at r3, 8 of 8 files at r4. Comments from the review on Reviewable.io |
Print human-readable tables for CLI queries.
Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com> Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
@michael-berlin
The table output is similar to the
mysql
CLI.