[PR #1267] [CLOSED] chore: bump Prisma ORM #1521

Closed
opened 2026-02-26 19:33:37 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/1267
Author: @jharrell
Created: 8/4/2024
Status: Closed

Base: mainHead: main


📄 Description


name: Migrate raw queries to Prisma TypedSQL
about: Utilize new Prisma ORM feature to handle fully-typed sql queries.

Description

Hello there! This is an experimental PR that adds a new feature of Prisma ORM, TypedSQL. TypedSQL allows you to write complex SQL queries in .sql files and then have those queries be importable into your typescript code.

This feature is not yet released, so I'm keeping this in a draft state in order to collect feedback before the feature is fully released.

Changes Made

  • create new .sql files in the sql subdirectory of the prisma package.
  • replace usages of kyselyPrisma and $queryRaw with the new $queryRawTyped.

Testing Performed

Would love further guidance on how testing is usually performed. I'm happy to help document and/or automate.

Checklist

  • I have tested these changes locally and they work as expected.
  • I have added/updated tests that prove the effectiveness of these changes.
  • I have updated the documentation to reflect these changes, if applicable.
  • I have followed the project's coding style guidelines.
  • I have addressed the code review feedback from the previous submission, if applicable.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/1267 **Author:** [@jharrell](https://github.com/jharrell) **Created:** 8/4/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📄 Description --- name: Migrate raw queries to Prisma TypedSQL about: Utilize new Prisma ORM feature to handle fully-typed sql queries. --- ## Description Hello there! This is an experimental PR that adds a new feature of Prisma ORM, TypedSQL. TypedSQL allows you to write complex SQL queries in `.sql` files and then have those queries be importable into your typescript code. This feature is not yet released, so I'm keeping this in a draft state in order to collect feedback before the feature is fully released. ## Changes Made <!--- Provide a summary of the changes made in this pull request. --> <!--- Include any relevant technical details or architecture changes. --> - create new `.sql` files in the `sql` subdirectory of the `prisma` package. - replace usages of `kyselyPrisma` and `$queryRaw` with the new `$queryRawTyped`. ## Testing Performed <!--- Describe the testing that you have performed to validate these changes. --> <!--- Include information about test cases, testing environments, and results. --> Would love further guidance on how testing is usually performed. I'm happy to help document and/or automate. ## Checklist <!--- Please check the boxes that apply to this pull request. --> <!--- You can add or remove items as needed. --> - [ ] I have tested these changes locally and they work as expected. - [ ] I have added/updated tests that prove the effectiveness of these changes. - [ ] I have updated the documentation to reflect these changes, if applicable. - [x] I have followed the project's coding style guidelines. - [ ] I have addressed the code review feedback from the previous submission, if applicable. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 19:33:37 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#1521
No description provided.