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

MySql Support #22

Open
raedabusanad opened this issue Oct 31, 2021 · 2 comments
Open

MySql Support #22

raedabusanad opened this issue Oct 31, 2021 · 2 comments

Comments

@raedabusanad
Copy link

Hello,

Based on the documentation under security and performance, can i use it with MySQL but store the UUID as BINARY(16)?
if not, when you planning to support MySql?

Many Thanks
RA

@richardtallent
Copy link
Owner

Hi,

I haven't used MySQL in many, many years -- not since I was playing around with WordPress. I know nothing about how/whether it supports UUIDs, whether they can be used as primary keys, sorting, etc.

I'll leave this open, but it'll need some work by others who are more familiar with that platform or who want to dig into adding support for it.

@gabephudson
Copy link

Late to the party, but RT.Comb.Provider.PostgreSql.Create() is what one should use for MySQL. MySQL stores UUIDs as BIN(16) columns and one can use BIN_TO_UUID() and UUID_TO_BIN() functions in MySQL 8+.

Since RT.Comb.Provider.PostgreSql.Create() creates a UUID v7, perhaps one should add a "RT.Comb.Provider.UUIDv7" to make it a DB agnostic provider?

Also alias the Sql provider with "MsSql" to make it clearer?

Great library, just a thought. :)

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

No branches or pull requests

3 participants