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

Added binary codec base58 as well as improving the help for --binary-codec flag #548

Merged
merged 3 commits into from
Jan 28, 2022

Conversation

maoueh
Copy link
Contributor

@maoueh maoueh commented Jan 21, 2022

No description provided.

@maoueh maoueh force-pushed the feature/binary-codec-base58 branch from 99a2aac to 2127ea1 Compare January 21, 2022 19:07
@sosedoff
Copy link
Owner

sosedoff commented Jan 22, 2022

I think i remember why i didn't make the base64 a default (like i thought): there's no way to differentiate between raw binary data encoded as base64 and regular table content that is stored in the encoded format by the database owner. It's not a big deal, but could be a bit misleading.

On the other hand, i'd still prefer convention over configuration, so i'll give this a go and merge if everything's looking good. Thanks for the contribution!

@sosedoff
Copy link
Owner

@maoueh
Copy link
Contributor Author

maoueh commented Jan 24, 2022

I think i remember why i didn't make the base64 a default (like i thought): there's no way to differentiate between raw binary data encoded as base64 and regular table content that is stored in the encoded format by the database owner. It's not a big deal, but could be a bit misleading.

I'm not sure I understand the problem to be honest. Also when you said i didn't make the base64 a default, does this mean it's not enabled and you would like that I remove the default in the CLI description?

@maoueh
Copy link
Contributor Author

maoueh commented Jan 24, 2022

Needs a test in here https://github.com/sosedoff/pgweb/blob/master/pkg/client/codec_test.go

I'll add that.

@sosedoff
Copy link
Owner

Yea, i meant that binary encoding is currently disabled, tho i don't have a problem with switching the default to base64 moving forward.

@sosedoff
Copy link
Owner

Looks like the correct base58 hello world is StV1DL6CwTryKyV :)

@sosedoff
Copy link
Owner

@maoueh can you fix the value? should be good then, you can ignore the appveyor failures

@maoueh
Copy link
Contributor Author

maoueh commented Jan 28, 2022

Not sure how I could fucked up so big lol sorry.

@sosedoff sosedoff merged commit 5803295 into sosedoff:master Jan 28, 2022
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