Skip to content
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

fix: avoid unreachable code with empty datamodel #5093

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

jacek-prisma
Copy link
Contributor

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

Loading a datamodel with an empty connector currently hits unreachable because we're relying on flavour for mutations, I've added new methods to the connector trait that is implemented for empty_connector to avoid the panic, this fixes the build in prisma/prisma

@jacek-prisma jacek-prisma requested a review from a team as a code owner December 18, 2024 17:14
@jacek-prisma jacek-prisma requested review from aqrln and removed request for a team December 18, 2024 17:14
Copy link

codspeed-hq bot commented Dec 18, 2024

CodSpeed Performance Report

Merging #5093 will not alter performance

Comparing fix/load-empty-datamodel (a0b705d) with main (3dc72ed)

Summary

✅ 11 untouched benchmarks

Copy link
Member

@aqrln aqrln left a comment

Choose a reason for hiding this comment

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

nice!

@aqrln aqrln added this to the 6.2.0 milestone Dec 18, 2024
Copy link
Contributor

WASM Query Engine file Size

Engine This PR Base branch Diff
Postgres 2.083MiB 2.083MiB 3.000B
Postgres (gzip) 837.567KiB 837.549KiB 18.000B
Mysql 2.048MiB 2.048MiB 10.000B
Mysql (gzip) 823.455KiB 823.607KiB -156.000B
Sqlite 1.961MiB 1.961MiB 3.000B
Sqlite (gzip) 788.367KiB 788.278KiB 91.000B

@jacek-prisma jacek-prisma merged commit acc7a89 into main Dec 18, 2024
364 of 367 checks passed
@jacek-prisma jacek-prisma deleted the fix/load-empty-datamodel branch December 18, 2024 17:36
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.

3 participants