How to connect to two databases using Prisma

Опубликовано: 25 Октябрь 2024
на канале: Programonaut
2,165
63

Learn how to connect Prisma ORM to two different databases using this step-by-step guide! For this example, we use two PostgreSQL instances.

How To Set Up Fastify With TypeScript and Automatic Reload:    • How To Set Up Fastify With TypeScript...  

If my content helps and you want to support the channel, get me a coffee ☕: https://pgnt.xyz/kofi

Original Post: https://www.programonaut.com/how-to-c...
---

Discord Community: https://pgnt.xyz/discord
---
00:00 - Introduction
00:17 - Example use case for two databases
01:14 - Set up the databases
01:36 - Set up a new project
02:17 - Initialize Prisma for both databases
03:27 - Prisma migrate to both databases
04:13 - Create the example endpoint
04:53 - Check that it works
05:08 - Conclusion