issues
search
prisma
/
quaint
SQL Query AST and Visitor for Rust
Apache License 2.0
582
stars
61
forks
source link
Add support for "swapped" UUIDs in MySQL
#365
Closed
cprieto
closed
2 years ago
cprieto
commented
2 years ago
MySQL 8 has index-optimized UUIDs, they are called swapped UUIDs
Sadly, they are enabled with a parameter in UUID
See
https://dev.mysql.com/doc/refman/8.0/en/miscellaneous-functions.html#function_uuid-to-bin
"Normal" UUID to bin still as is (equivalent parameter, 0)
This generates a swapped UUID for generated ids
Will solve (partially)
https://github.com/prisma/prisma/issues/12850