Type-Safe Raw SQL With Prisma

Опубликовано: 24 Июль 2026
на канале: Prisma
1,484
45

The Prisma ORM makes type-safe database access a breeze, but there are many times where we need to drop down to raw SQL in our applications. In older versions of Prisma, there was no type safety when using raw SQL. But as of version 5.19, we can now get full type safety in our raw SQL files using the Typed SQL feature.

Let's take a look at how to use Typed SQL with Prisma!

Ryan Chenkie
https://x.com/ryanchenkie

——————————————————

📚 Learn more about Prisma
• Website: https://www.prisma.io
• Docs: https://www.prisma.io/docs
• Quickstart: https://pris.ly/qstart
• Prisma Postgres: https://www.prisma.io/postgres

——————————————————

👋 Connect with the Prisma Community
• Discord:   / discord  
• GitHub: https://www.github.com/prisma/prisma/...

——————————————————

💬 Follow Prisma on social media
• Twitter:   / prisma  
• LinkedIn:   / prisma-io  

——————————————————

✅ Subscribe to Prisma's YouTube channel
   / @prismadata