Advertisement
STANAANDREY

prisma nest steps

Oct 6th, 2024 (edited)
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. Next steps:
  2. 1. Set the DATABASE_URL in the .env file to point to your existing database. If your database has no tables yet, read https://pris.ly/d/getting-started
  3. 2. Set the provider of the datasource block in schema.prisma to match your database: postgresql, mysql, sqlite, sqlserver, mongodb or cockroachdb.
  4. 3. Run prisma db pull to turn your database schema into a Prisma schema.
  5. 4. Run prisma generate to generate the Prisma Client. You can then start querying your database.
  6. 5. Tip: Explore how you can extend the ORM with scalable connection pooling, global caching, and real-time database events. Read: https://pris.ly/cli/beyond-orm
  7.  
  8. More information in our documentation:
  9. https://pris.ly/d/getting-started
  10.  
  11.  
  12. // This is your Prisma schema file,
  13. // learn more about it in the docs: https://pris.ly/d/prisma-schema
  14.  
  15. // Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
  16. // Try Prisma Accelerate: https://pris.ly/cli/accelerate-init
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement