Open varna opened 5 months ago
+1, any updates?
+1, any update?
While not being quite the same, someone made a PR a MariaDB driver, but yet to be merged. https://github.com/drizzle-team/drizzle-orm/pull/1692
While not being quite the same, someone made a PR a MariaDB driver, but yet to be merged. #1692
Just letting everyone know that my PR only partially solves this issue, as the RQB syntax (db.query
) doesn't work due to MariaDB not supporting lateral joins. However, it would support the core API syntax (db.select
).
The idea of a mode for MariaDB has only been briefly discussed with the team (that I'm not officially a part of), and the RQB API would need to be extended and tested extensively (at least, I think that would be the case).
There are valid reasons to use MariaDB over MySQL. I hope this gets implemented too 🙏 https://mariadb.org/how-mariadb-and-mysql-performance-changed-over-releases/
Describe what you want
Hello,
We use
mariadb
at work. I don't know why, but seniors told me that "it's just a fork of mysql because of licensing". So I used it as any mysql. Withmysql2
driver. While using Drizzle, I found out thatmariadb
doesn't support lateral derived tables, because my SQL fordb.query
failed onLEFT JOIN LATERAL
.I don't think that it would be proper to treat
mariadb
as different db, because in my experience, it feels closer tomysql
than Planetscale (at least it has fkeys). So I wanted to ask, what do you think about having a newmode: mariadb
formysql
in Drizzle?