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

Sqlite ppg migration #7570

Merged
merged 38 commits into from
Feb 24, 2025
Merged

Sqlite ppg migration #7570

merged 38 commits into from
Feb 24, 2025

Conversation

ankur-arch
Copy link
Contributor

@ankur-arch ankur-arch commented Feb 20, 2025

Summary

This PR updates our /orm examples to use Prisma Postgres instead of SQLite.

Changes

  • README Updates:

    • Instructs users to run npx prisma@latest init --db.
    • Adds guidance on seeding the database.
    • Provides steps to remove the Accelerate extension when using providers other than Postgres.
  • Code Updates:

    • Converts fluent API queries to standard function calls. Also updated READMEs accordingly.
    • Adds instructions for extending the Prisma Client in NestJS applications in README, also updating the application code.
    • Modifies tests to run sequentially (using a single database URL) instead of in parallel. See discussion for additional context.

Exclusions:

  • /orm/typedsql: the SQL queries don't work with PostgreSQL and work only with SQLite.
  • /orm/nuxt-module-prisma: No changes made since it’s tied to the guide [here](https://www.prisma.io/docs/orm/more/help-and-troubleshooting/prisma-nuxt-module).
  • /orm/postgis-express: No updates were applied as this example does not use Prisma Postgres. I encountered issues getting it to work and decided to prioritize the other examples.
  • Product examples for Optimize, Accelerate, Pulse.

@ankur-arch ankur-arch self-assigned this Feb 20, 2025
nikolasburk
nikolasburk previously approved these changes Feb 21, 2025
@nikolasburk nikolasburk self-requested a review February 24, 2025 10:16
Copy link
Member

@nikolasburk nikolasburk left a comment

Choose a reason for hiding this comment

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

great job Ankur!!

@ankur-arch ankur-arch merged commit 422126a into latest Feb 24, 2025
38 checks passed
@ankur-arch ankur-arch deleted the sqlite-ppg-migration branch February 24, 2025 12:35
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.

2 participants