-
Notifications
You must be signed in to change notification settings - Fork 995
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
Add prisma studio via db studio command #799
Conversation
This looks great! I think having the command live in |
@peterp Renamed to |
Why this limitation, if prisma studio needs this files then prisma studio should complain about it. Redwood can show this warning but should allow to run prisma studio if there is no such limitation in studio itself. |
@nexneo There is a limitation. But the error message isn't very informative/could be better. Say you don't have the And the error message in the terminal:
If you don't have
|
Co-authored-by: Peter Pistorius <peter.pistorius@gmail.com>
@jtoar I think this is OK to merge |
@jtoar We use postgresql so we don't have |
@nexneo Ah got it—that makes sense. Maybe there should be a Studio is still experimental so I'm sure things will get better in the near future too. I imagine some of the details of this command will change a lot. |
Hmmm... @nexneo raises a valid point, we should just check if |
@jtoar Awesome!!! |
This PR adds a new db command:
ide
. It starts Prisma Studio.Note that you have to have a
dev.db
and amigrations
directory inapi/prisma
for this to work. If either are missing, the command outputs:Design Question:
Should this actually just be a flag on dev like @thedavidprice suggested in #467?
I'm open to anything, I just finally got it to work this way and wanted to reopen the discussion with a working spike.
Priority
Before attempting to write any kind of Prisma primer, I think we should get this one figured out. As Siddhant Sinha demoed on Prisma Day, you can use Prisma Studio as a playground for your Prisma Client—basically the equivalent of GraphiQL for GraphQL, which is super awesome.