Skip to content

fix: downgrade the driver of sqlite and mariadb to 6.18.0 (#32)#33

Merged
jiashengguo merged 1 commit intomainfrom
dev
Mar 31, 2026
Merged

fix: downgrade the driver of sqlite and mariadb to 6.18.0 (#32)#33
jiashengguo merged 1 commit intomainfrom
dev

Conversation

@jiashengguo
Copy link
Copy Markdown
Member

  • fix: downgrade the driver of sqlite and mariadb to 6.18.0

  • fix PrismaMariaDb

* fix: downgrade the driver of sqlite and mariadb to 6.18.0

* fix PrismaMariaDb
Copilot AI review requested due to automatic review settings March 31, 2026 04:33
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 31, 2026

Warning

Rate limit exceeded

@jiashengguo has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 9 minutes and 33 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 9 minutes and 33 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 6562e575-caf6-4689-a44c-43d8034cfc55

📥 Commits

Reviewing files that changed from the base of the PR and between b25acc2 and a531a7f.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (2)
  • package.json
  • src/server.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dev

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@jiashengguo jiashengguo merged commit 81099de into main Mar 31, 2026
5 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Downgrades Prisma SQLite and MariaDB driver-adapter dependencies to the Prisma 6.x line and updates runtime adapter loading to align with changed adapter export names, along with a patch version bump.

Changes:

  • Downgrade @prisma/adapter-better-sqlite3 and @prisma/adapter-mariadb dependency ranges from 7.x to ^6.18.0 and update the lockfile accordingly.
  • Update SQLite adapter require logic to support multiple export shapes/names.
  • Fix MariaDB adapter symbol name usage (PrismaMariaDb) and bump package version to 0.4.1.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/server.ts Adjusts adapter module loading to handle adapter export/name differences (SQLite + MariaDB).
package.json Bumps package version and downgrades Prisma adapter dependency ranges to 6.x.
pnpm-lock.yaml Reflects resolved Prisma adapter versions after the dependency changes.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +32 to +33
"@prisma/adapter-better-sqlite3": "^6.18.0",
"@prisma/adapter-mariadb": "^6.18.0",
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR title/description says “downgrade … to 6.18.0”, but using a caret range ("^6.18.0") still allows pnpm to resolve newer 6.x versions (the lockfile currently resolves 6.19.2). If the intent is to pin specifically to 6.18.0, change the specifier to an exact version (or at least "~6.18.0") and regenerate the lockfile accordingly; otherwise consider updating the PR description/title to reflect that this is a major downgrade to 6.x, not specifically 6.18.0.

Copilot uses AI. Check for mistakes.
Comment on lines 11 to +16
'@prisma/adapter-better-sqlite3':
specifier: ^7.3.0
version: 7.3.0
specifier: ^6.18.0
version: 6.19.2
'@prisma/adapter-mariadb':
specifier: ^7.1.0
version: 7.2.0
specifier: ^6.18.0
version: 6.19.2
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lockfile resolves @prisma/adapter-better-sqlite3 and @prisma/adapter-mariadb to 6.19.2 even though the PR states a downgrade “to 6.18.0”. If you really need 6.18.0 specifically, the specifier needs to be pinned (or "~6.18.0") and the lockfile should be regenerated so it resolves to 6.18.x.

Copilot uses AI. Check for mistakes.
}
const { PrismaBetterSQLite3 } = require('@prisma/adapter-better-sqlite3')
const _mod = require('@prisma/adapter-better-sqlite3')
//Prisma7 renamed PrismaBetterSqlite3 from PrismaBetterSQLite3, support both cases for compatibility
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inline comment formatting doesn’t match the surrounding style (missing space after //) and the wording is a bit confusing (“renamed … from …”). For consistency/clarity, adjust to something like “Prisma 7 renamed PrismaBetterSQLite3 to PrismaBetterSqlite3; support both for compatibility”.

Suggested change
//Prisma7 renamed PrismaBetterSqlite3 from PrismaBetterSQLite3, support both cases for compatibility
// Prisma 7 renamed PrismaBetterSQLite3 to PrismaBetterSqlite3; support both for compatibility

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants