fix: captured missing url for prisma mariadb adapter#2543
Merged
Conversation
abbcc8b to
91e879b
Compare
b4fdde1 to
2d4949f
Compare
kirrg001
reviewed
May 13, 2026
| const { PrismaPg } = await import('@prisma/adapter-pg'); | ||
| adapter = new PrismaPg({ connectionString: process.env.INSTANA_CONNECT_POSTGRES_PRISMA_URL }); | ||
| console.log(`Initialized Prisma ${version} with PostgreSQL adapter`); | ||
| } else if (provider === 'mysql') { |
Contributor
There was a problem hiding this comment.
We have to call the provider mariadb.
Contributor
Author
There was a problem hiding this comment.
Both MySQL and MariaDB use the same mysql provider. See: https://www.prisma.io/docs/orm/core-concepts/supported-databases/mysql#self-hosted-mysqlmariadb
https://github.com/prisma/prisma/blob/main/packages/adapter-mariadb/src/mariadb.ts
Contributor
There was a problem hiding this comment.
Ok I understand the mariadb adapter can also work with mysql, but the adapter is called mariadb lol
kirrg001
reviewed
May 13, 2026
kirrg001
reviewed
May 13, 2026
kirrg001
reviewed
May 13, 2026
kirrg001
approved these changes
May 13, 2026
Contributor
kirrg001
left a comment
There was a problem hiding this comment.
Cool. But please add a technical comment to explain the flows.
71dee18 to
96f287a
Compare
96f287a to
e21e1d3
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Starting with Prisma v7, the new driver adapter model allows using different database drivers. For MySQL/MariaDB databases, Prisma now supports the
@prisma/adapter-mariadbpackage. This adapter works seamlessly with both MySQL and MariaDB databases.https://instana.io/s/Fp4ymN52R1eY0pieUVwA7g
ref: https://jsw.ibm.com/browse/INSTA-89747
See: https://github.com/prisma/prisma/tree/main/packages/adapter-mariadb