How to use ORMs (Prisma / Drizzle / Knex.js) in a TypeScript backend built with Encore.ts

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 พ.ย. 2024

ความคิดเห็น • 5

  • @marcuskohlberg5780
    @marcuskohlberg5780 วันที่ผ่านมา +4

    This is awesome!

  • @encoreandre
    @encoreandre วันที่ผ่านมา +3

    Looking good :)

  • @PiLeGGis
    @PiLeGGis 3 ชั่วโมงที่ผ่านมา

    One problem I see with Encore and databases (or at least I didn't know how to do it) is that each service has to have its own database and it doesn't allow you to use a shared one. For those who are starting a project and are interested in starting with a monolithic project or even using the power of relationships between tables, I didn't find how to make this work.

    • @encoredev
      @encoredev  2 ชั่วโมงที่ผ่านมา

      Hi, sharing databases between services is in fact supported. Here is the relevant docs section: encore.dev/docs/ts/primitives/databases#sharing-databases-between-services

  • @ngungadev
    @ngungadev 6 ชั่วโมงที่ผ่านมา

    i use prisma