Skip to content
Compare
Choose a tag to compare
@github-actions github-actions released this 11 Sep 18:49
· 215 commits to main since this release
985e10b

Minor Changes

  • #1461 8034db0 Thanks @juliusmarminge! - feat: add drizzle

    This release adds a new option to use drizzle-orm as an alternative to Prisma.

    To make the different ORM options as similar as possible, some minor changes has also been made to the Prisma installer:

    • a new script db:push has been added and is included in both ORM options.
    • the prisma client has been renamed to db in the trpc context - you now access your database client like
      examples: publicProcedure.query((opts) => {
         // prisma
         opts.ctx.db.example.findMany()
         // drizzle
         opts.ctx.db.query.example.findMany()
      }),

    You cannot choose the two options in the same app.

Patch Changes