Will updating Prisma break my Wasp app?

Will my Wasp app break if I update Prisma to 5.12.0?
M
MEE616d ago
Wohooo @isaiah, you just became a Waspeteer level 6!
K
kapa.ai16d ago
Hi @isaiah. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Hmm, I don't know enough to give you a confident answer yet. The knowledge sources provided do not mention the specific impact of updating Prisma to version 5.12.0 on a Wasp app. However, it's important to note that Wasp heavily relies on Prisma for the DB layer of the web app and any major changes in Prisma could potentially affect your Wasp app. In one of the support threads (https://discord.com/channels/686873244791210014/1097604882011267102), it was mentioned that Wasp assumes it works with Prisma 4, not Prisma 5, so you might end up with some issues if you update to Prisma 5. Also, in a Github issue (https://github.com/wasp-lang/wasp/issues/158), it was mentioned that Prisma introduced breaking changes in 2.13, which broke Wasp. Therefore, it's recommended to carefully review the changes in the new Prisma version and test your app thoroughly after the update. If you encounter any issues, you can refer to the Wasp community or the official documentation for help. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @isaiah, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
I
isaiah16d ago
@kapa.ai List sources on how Prisma is implemented in Wasp.
K
kapa.ai16d ago
Let me check the knowledge base for you. One moment! :books: ---------------------- Sure, here are some sources that explain how Prisma is implemented in Wasp: 1. Wasp Docs - Data-model - Databases - Prisma Configuration (https://wasp-lang.dev/docs/data-model/backends#prisma-configuration): This source explains how Wasp uses Prisma to interact with the database. It also provides information on how to enable Prisma's preview features and PostgreSQL extensions in Wasp. 2. Github Issue - Expand our Prisma support (https://github.com/wasp-lang/wasp/issues/641): This issue discusses how Wasp heavily uses Prisma for the DB layer of the web app and plans to expand its support for Prisma features in the future. 3. Wasp Docs - Data-model - Entities (https://wasp-lang.dev/docs/data-model/entities): This source explains how Wasp Entities directly correspond to Prisma's data model and how Wasp uses Prisma ORM to implement all database functionality. 4. Github Issue - Give direct access to prisma CLI/commands through wasp CLI (https://github.com/wasp-lang/wasp/issues/216): This issue discusses the idea of giving direct access to Prisma CLI/commands through the Wasp CLI. 5. Github Issue - Ensure we perfectly understand Prisma workflows in production and support them with Wasp CLI and docs (https://github.com/wasp-lang/wasp/issues/908): This issue discusses the need to understand Prisma workflows in production and support them with Wasp CLI and docs. 6. Discord support thread - Data Storage & CMS for Beginners? (https://discord.com/channels/686873244791210014/1206149808327364628): In this thread, a community member explains how Wasp uses Prisma to interact with the database and perform CRUD operations. 7. Github Issue - Update Prisma to the latest version (https://github.com/wasp-lang/wasp/issues/194): This issue discusses the plan to update Prisma to the latest version and the need to set up a 2-way communication with Prisma CLI. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @isaiah, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
I
isaiah16d ago
@kapa.ai Any reasons why PostgreSQL is preferred for production as stated in the documentation? Any reasons why not SQLite?
K
kapa.ai16d ago
Let me check the knowledge base for you. One moment! :books: ---------------------- Yes, there are several reasons why PostgreSQL is preferred over SQLite for production in Wasp: 1. Advanced Features: PostgreSQL is one of the most advanced open-source databases and has been in active development for over 20 years. It supports a wide range of data types and features that SQLite does not. For example, PostgreSQL supports the DATETIME data type, which SQLite does not. In fact, SQLite only supports 5 data types (https://sqlite.org/datatype3.html) while PostgreSQL supports many more (https://www.postgresql.org/docs/current/datatype.html) (source (https://github.com/wasp-lang/wasp/issues/1622)). 2. Scalability: PostgreSQL is better suited for large-scale applications and can handle a larger volume of data and concurrent users than SQLite. 3. Production Readiness: SQLite is primarily used for development due to its simplicity and lack of configuration. However, once you want to deploy your Wasp app to production, you'll need to switch to PostgreSQL (source (https://wasp-lang.dev/docs/data-model/backends)). 4. Compatibility with Wasp Features: Some Wasp features demand PostgreSQL, so more complex starters start with PostgreSQL (source (https://github.com/wasp-lang/wasp/issues/1622)). 5. Migration Simplicity: Migrating from SQLite to PostgreSQL is pretty simple, and Wasp provides a guide to help with this process (source (https://wasp-lang.dev/docs/data-model/backends)). While SQLite is a great way to get started with a new project because it doesn't require any configuration, it's not recommended for production use in Wasp applications. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @isaiah, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
Want results from more Discord servers?
Add your server
More Posts
default passwordHello all, thanks for your work! this project looks great. I'm spinning it up from the base with thHow does the Wasp compiler work?How does the Wasp compiler work? Do I still need the internet when using it?How can I use WASP on Windows?How can I use WASP on Windows?Disable google authHow to disable google auth in an existing wasp project that uses google auth?Error when trying to login with google oauthI recently migrated my codebase from 0.12.4 to 0.13.0 and I'm now having issues when I attempt to loPassword Reset token invalidationHey, could it be that a password token can be reused once it is used? Tried it 3 times with the sameMails not being sent (Mailgun and Sendgrid tested => both haven't even got an API request)Hey, I have setup my main.wasp with my email I have registered and set the APIKey - for password resuiWhich ui component library works well with waspRunning the backend as a regular node.js app?Hi, I'm wondering if it's possible to run the backend as a regular node.js application like 'npm staWhere to startIm a UI designer dabbling in trying to create my first app w/ GitHub code pilot as I’m not a developrunning wasp inside google idx errorI am trying to setup the dev environment test out opensaas with google online ide idx, but when I trApp crashed for unknowing reasonHey, I start the app when it's still v-0.12.0, it works fine till today, nothing changed on my end btrying to run wasp.sh server on dockerHey guys, so I tried dockerising wasp-sh after I saw it on your recent reddit post. 1. I created aConfused about [Client ]HMR[Wasp 0.13.0, MacOs] Hey guys, I am trying to update wasp header/nav bar to a new style with framerIssue with deploying my wasp app to fly.ioI'm trying to deploy my wasp app to fly.io, but I'm encountering an error that doesn't make sense. Whas anyone got shadcn to work with wasp? I am trying but keep getting an errorAttached is the error I am currently getting. Just wondering if anyone has had success with it?"wasp start db" takes too much time.Any solution for this? i seem to be stuck in a loop and i can't do "Wasp start" until this resolves.Best Practices for Implementing Auth System in Chrome Extension Connected to OpenSaaSHello, everyone! I'm currently developing a SaaS product and have created a Chrome extension. I'm aCompile / Parse error with the ToDoApHello all , I just downloaded and installed Wasp on Windows 11 with WSL2. The installation wenPossibility to disable wasp reload on UI file changes?Hey my dudes, is it possible to calm down this guy on the screenshot from reloading everything every