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

Enhancement: Support binary SQL representation #46

Open
mcandre opened this issue Apr 5, 2019 · 2 comments
Open

Enhancement: Support binary SQL representation #46

mcandre opened this issue Apr 5, 2019 · 2 comments

Comments

@mcandre
Copy link

mcandre commented Apr 5, 2019

Binary UUID format in SQL has much better performance than text UUID format in SQL. Could we get support for seamless binary UUID marshaling?

@cbandy
Copy link

cbandy commented Sep 4, 2019

Can you please describe what "Binary UUID format in SQL" means and what "seamless" marshaling might look like?

@ZzEeKkAa
Copy link

ZzEeKkAa commented Mar 10, 2021

@cbandy if you create uuid in mysql as binary(16), then drivers are waiting for byte[16], not string, which is returned by default from Value(). But we cannot just replace, cause it depends on driver. Global flag is also not a good solution, because if you use multiple drivers in the solution it's going to be a hell.

Thinks became more tricky if you use gorm. You do not send values explicitly.

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

No branches or pull requests

3 participants