drizzle-team / drizzle-team/drizzle-orm

[FEATURE]: Add `mode: mariadb` to `mysql`

Open
#2,007 12 comments 34 reactions 0 assignees View on GitHub
db/mariadb db/mysql enhancement priority rqb
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### 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. With `mysql2` driver. While using Drizzle, I found out that `mariadb` doesn't support [lateral derived tables](https://jira.mariadb.org/browse/MDEV-19078), because my SQL for `db.query` failed on [`LEFT JOIN LATERAL`](https://jira.mariadb.org/browse/MDEV-33018?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel).

I don't think that it would be proper to treat `mariadb` as different db, because in my experience, it feels closer to `mysql` than Planetscale (at least it has fkeys). So I wanted to ask, what do you think about having a new `mode: mariadb` for `mysql` in Drizzle?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.