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

qe/dmmf: take QuerySchema by ref and rename IntoRenderer #3925

Merged
merged 1 commit into from
Apr 26, 2023

Conversation

tomhoule
Copy link
Contributor

  • We now take QuerySchema by reference. That binds a handy lifetime into the rendering context for everything derived from Queryschema.
  • IntoRenderer is renamed to AsRenderer to make clippy and people who care about the rust api guidelines happy (myself included), and the signature changes a little so that lifetimes are clarified,

This PR is a simple cleanup with ulterior motives re: the API exposed by schema with https://github.com/prisma/team-orm/issues/7.

- We now take QuerySchema by reference. That binds a handy lifetime into
  the rendering context for everything derived from Queryschema.
- IntoRenderer is renamed to AsRenderer to make clippy and people who
  care about the rust api guidelines happy (myself included), and the
  signature changes a little so that lifetimes are clarified,

This PR is a simple cleanup with ulterior motives re: the API exposed by
`schema` with https://github.com/prisma/client-planning/issues/344.
@tomhoule tomhoule requested a review from a team April 26, 2023 11:33
@tomhoule tomhoule added this to the 4.14.0 milestone Apr 26, 2023
@codspeed-hq
Copy link

codspeed-hq bot commented Apr 26, 2023

CodSpeed Performance Report

Merging #3925 dmmf-query-schema-by-reference (5ba0191) will not alter performances.

Summary

🔥 0 improvements
❌ 0 regressions
✅ 6 untouched benchmarks

🆕 0 new benchmarks
⁉️ 0 dropped benchmarks

Copy link
Member

@Weakky Weakky left a comment

Choose a reason for hiding this comment

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

Noice 👍

@tomhoule tomhoule merged commit 885141b into main Apr 26, 2023
@tomhoule tomhoule deleted the dmmf-query-schema-by-reference branch April 26, 2023 12:02
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.

None yet

2 participants