Skip to content

feat: sqlite JSON support#25871

Merged
aqrln merged 17 commits intomainfrom
feat/sqlite-json
Dec 19, 2024
Merged

feat: sqlite JSON support#25871
aqrln merged 17 commits intomainfrom
feat/sqlite-json

Conversation

@jacek-prisma
Copy link
Copy Markdown
Contributor

@jacek-prisma jacek-prisma commented Dec 16, 2024

Fix required for prisma/prisma-engines#5088

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 16, 2024

size-limit report 📦

Path Size
packages/client/runtime/library.js 189.65 KB (0%)
packages/client/runtime/library.d.ts 81 B (0%)
packages/client/runtime/binary.js 610.08 KB (0%)
packages/client/runtime/binary.d.ts 26 B (0%)
packages/client/runtime/edge.js 161.05 KB (0%)
packages/client/runtime/edge-esm.js 160.54 KB (0%)
packages/client/runtime/wasm.js 121.75 KB (0%)
packages/client/runtime/index-browser.js 33.9 KB (0%)
packages/client/runtime/index-browser.d.ts 89 B (0%)
packages/cli/build/index.js 2.14 MB (0%)
packages/client/prisma-client-0.0.0.tgz 2.96 MB (0%)
packages/cli/prisma-0.0.0.tgz 3.74 MB (0%)
packages/bundle-size/da-workers-libsql/output.tgz 890.13 KB (+0.01% 🔺)
packages/bundle-size/da-workers-neon/output.tgz 965.15 KB (0%)
packages/bundle-size/da-workers-pg/output.tgz 986.49 KB (0%)
packages/bundle-size/da-workers-pg-worker/output.tgz 938.85 KB (0%)
packages/bundle-size/da-workers-planetscale/output.tgz 899.3 KB (0%)
packages/bundle-size/da-workers-d1/output.tgz 860.95 KB (+0.01% 🔺)

Copy link
Copy Markdown
Contributor

@jkomyno jkomyno left a comment

Choose a reason for hiding this comment

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

Please go through every client test that contains Json fields in schemas, and ensure that the sqlite provider is tested there.

Start by looking for Json in ./packages/client/tests/functional.
You may need to add { provider: Providers.SQLITE } in places like this, and remove sqlite from the optOut lists (example).

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Dec 16, 2024

CodSpeed Performance Report

Merging #25871 will degrade performances by 20.07%

Comparing feat/sqlite-json (36774a4) with main (3bfa4e8)

Summary

❌ 1 regressions
✅ 2 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark main feat/sqlite-json Change
client generation 100 models with relations 5.9 s 7.4 s -20.07%

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 17, 2024

🟢 All good, this PR is no longer uses custom engine.

@aqrln aqrln added this to the 6.2.0 milestone Dec 18, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Dec 19, 2024
@aqrln aqrln merged commit e3e5568 into main Dec 19, 2024
@aqrln aqrln deleted the feat/sqlite-json branch December 19, 2024 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants