-
-
Notifications
You must be signed in to change notification settings - Fork 104
Enable JSON fields for SQLite #2081
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
it's supported by prisma: https://www.prisma.io/docs/orm/reference/prisma-schema-reference#json
📝 WalkthroughWalkthroughThe pull request updates the constant Changes
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
🧰 Additional context used🧬 Code Graph Analysis (1)tests/integration/tests/enhancements/json/crud.test.ts (1)
🔇 Additional comments (7)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Hi @liontariai , thanks for making this PR! I've fixed a broken test case and also added test coverage for sqlite+json. Will merge it when CI passes. |
It's supported by prisma according to the docs https://www.prisma.io/docs/orm/reference/prisma-schema-reference#json
and I've been using it in my private projects for some time now by patching zenstack.
Also, here's the Prisma release announcing the feature: https://github.com/prisma/prisma/releases/tag/6.2.0
I was hoping for this to come to zenstack naturally but it seems to still be overlooked.
It's really just this one line, so I haven't run a testsuite or written tests for it.
I'm open to feedback as this is my first PR here, but I think it's really not worth putting too much overhead-effort into this one.