docs icon indicating copy to clipboard operation
docs copied to clipboard

MariaDB mentions

Open ottok opened this issue 1 year ago • 5 comments

Describe this PR

I have never used Prisma before, and it took me quite a lot of extra effort to figure out if Prisma supports MariaDB at all because the documentation was only mentioning MySQL. After some digging, I found that indeed Prisma uses both https://www.npmjs.com/package/mariadb for the connector and https://hub.docker.com/_/mariadb as part of the CI, and MariaDB support is actually excellent.

What issue does this fix?

The docs hide the fact that Prisma actually supports MariaDB. Sequalize has very clear MariaDB documentation, and if you merge this PR then Prisma will be much more clear about the MariaDB support situation.

Changes

Each commit is atomic and carefully documented - please review this PR by looking commit-by-commit looking at the message and the change at the same time.

Looking at git log in 500-databases and e.g. 4358a4169ef3ff042d70b825a9cf3e16bf71e48e seems you prefer to squash when merging. Please merge this PR as-is without squashing to avoid loosing the per-commit documentation.

Any other relevant information

I am also happy to iterate on the contents of this PR based on your feedback. I am also happy to rebase frequently.

ottok avatar Mar 13 '24 05:03 ottok

@ottok is attempting to deploy a commit to the Prisma Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Mar 13 '24 05:03 vercel[bot]

Hi there @ottok , is this PR distinct from #5706 ?

jharrell avatar Mar 13 '24 16:03 jharrell

Yes, I split this and also #5716 out from #5706 in hope that it is easier for you to review and to accept a few smaller PRs instead of one big one.

ottok avatar Mar 14 '24 02:03 ottok

Hey there @ottok thanks again for your pull requests.

We want to pull some of this in, but not all of it. Would you mind changing this PR to only have the changes to these files?

  • content/200-orm/100-prisma-schema/20-data-model/20-relations/410-referential-actions/index.mdx
  • content/200-orm/500-reference/375-supported-databases.mdx
  • src/components/shortcodes/index.tsx

These are references where we think that, indeed, we also need to mention MariaDB. We can then review that and get it merged in.

As for #5706 , we can't accept it in its current state. MariaDB is supported via the MySQL provider, so having duplicated documentation that can quickly get out of sync isn't something we want to do.

Instead, we'd like to change the title of content/200-orm/050-overview/500-databases/400-mysql.mdx to MySQL and MariaDB from just MySQL. An additional sentence describing that we also support MariaDB due to it being compatible with MySQL would be nice as well.

I hope that all makes sense! Thank you again for your work.

jharrell avatar Mar 14 '24 15:03 jharrell

Thanks for the feedback! I have updated the PR following your guidance.

ottok avatar Mar 19 '24 03:03 ottok

Thanks Jon for the feedback - I have updated the PR accordingly and also rebased on latest prisma:main.

Looking at git log in 500-databases and e.g. https://github.com/prisma/docs/commit/4358a4169ef3ff042d70b825a9cf3e16bf71e48e seems you prefer to squash when merging. Please merge this PR as-is without squashing to avoid loosing the per-commit documentation. Each commit is atomic and carefully documented.

ottok avatar Mar 20 '24 04:03 ottok

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 21, 2024 1:06pm

vercel[bot] avatar Mar 20 '24 13:03 vercel[bot]

Looking at git log in 500-databases and e.g. 4358a41 seems you prefer to squash when merging. Please merge this PR as-is without squashing to avoid loosing the per-commit documentation. Each commit is atomic and carefully documented.

@ottok is there any particular reason why this needs to be not squashed and merged? I appreciate the work you did here and am happy to merge, but we squash/merge as a default. Commits are still available in the respective PR.

jharrell avatar Mar 20 '24 13:03 jharrell

Looking at git log in 500-databases and e.g. 4358a41 seems you prefer to squash when merging. Please merge this PR as-is without squashing to avoid loosing the per-commit documentation. Each commit is atomic and carefully documented.

@ottok is there any particular reason why this needs to be not squashed and merged? I appreciate the work you did here and am happy to merge, but we squash/merge as a default. Commits are still available in the respective PR.

If you care about linear history, or about being able to read git commits and the messages through tools like git blame etc, you should prefer linear history and normal merges or rebase+merge. But this is just a sidetrack for the doc change - git use is a topic for another day. Feel free to merge as you wish.

Thanks for the feedback rounds to get this polished, the result will now make the docs much better for MariaDB users. Thanks!

ottok avatar Mar 21 '24 05:03 ottok