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

Proposal: using prisma for database query. #25

Closed
G3root opened this issue Nov 13, 2021 · 4 comments
Closed

Proposal: using prisma for database query. #25

G3root opened this issue Nov 13, 2021 · 4 comments
Assignees

Comments

@G3root
Copy link
Contributor

G3root commented Nov 13, 2021

Some of the advantages using prisma with supabase other than @supabase/supabase-js

  • type safety - prisma generates types for every model based on the schema.
  • schema migrations - ability to version control schema migrations
  • awesome DX - provides auto completion out of the box.
  • supports connection pooling for pgbouncer.
  • easy database setup for local development .
  • has an API for seeding database locally .

We can start from here https://dev.to/prisma/set-up-a-free-postgresql-database-on-supabase-to-use-with-prisma-3pk6

@4gnle
Copy link
Contributor

4gnle commented Nov 14, 2021

Hey @G3root! Thanks for the recommendation.

@carlomigueldy is handling the back-end right now. We're still finishing the front-end before we start with database queries.

What do you think of this idea @carlomigueldy?

@carlomigueldy
Copy link
Contributor

carlomigueldy commented Nov 14, 2021

Wow. This is great suggestion. @G3root @angeljgomezc

has an API for seeding database locally .

I've actually been thinking of how I do this same how it works for Laravel's php artisan db:seed. I think adding Prisma will be very convenient.

Thank you so much for the suggestion let's add this @G3root !

@G3root
Copy link
Contributor Author

G3root commented Nov 14, 2021

Wow. This is great suggestion. @G3root @angeljgomezc

has an API for seeding database locally .

I've actually been thinking of how I do this same how it works for Laravel's php artisan db:seed. I think adding Prisma will be very convenient.

Thank you so much for the suggestion let's add this @G3root !

That's great , I'll send a draft PR today so we can figure out anything odd. 🎉

@carlomigueldy
Copy link
Contributor

Let's gooooo @G3root :)

@G3root G3root mentioned this issue Nov 15, 2021
4 tasks
@4gnle 4gnle closed this as completed Dec 27, 2021
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 a pull request may close this issue.

3 participants