How To Write Raw SQL w/ Type Safety in Prisma ORM

  Рет қаралды 3,793

Prisma

Prisma

Күн бұрын

This video introduces TypedSQL, a long-awaited feature in Prisma ORM that makes raw SQL queries type-safe. Learn how this new functionality enhances your development experience by providing type safety, auto-completion, and more! Join ‪@marc-hess‬ as he walks through the benefits of TypedSQL and shows you exactly how to implement it in your projects!
TypedSQL: www.prisma.io/...
Blog: pris.ly/typeds...
Docs: pris.ly/d/type...
Example: pris.ly/typeds...
------------------
📚 Learn more about Prisma
• Website: www.prisma.io
• Docs: www.prisma.io/...
• Quickstart: pris.ly/qstart
------------------
👋 Connect with the Prisma Community
• Discord: / discord
• GitHub: www.github.com...
------------------
💬 Follow Prisma on social media
• Twitter: / prisma
• LinkedIn: / prisma-io
------------------
✅ Subscribe to Prisma's KZbin channel
/ @prismadata

Пікірлер: 22
@PrismaData
@PrismaData 28 күн бұрын
Let us know what you think! Will you use TypedSQL in your next project? Get started writing type-safe raw SQL -> pris.ly/d/typedsql
@intergenredocument
@intergenredocument 19 күн бұрын
Thanks for this feature 👏 I think intellisense and option to write inline SQL within TS file would be also great 😌
@HeyWorld-o8j
@HeyWorld-o8j 11 күн бұрын
Nope, unless you can solve one feature that will improve security and DX. Don't make us insert the wrong columns when someone unknowingly swpped the columns, please. That's not safe.
@warrensadler1271
@warrensadler1271 27 күн бұрын
🤯 kudos to the prisma team for this feature!
@48265868
@48265868 6 күн бұрын
I did not even think it was possible to overcomplicate this basic feature. Yet you actually overcomplicated what should be simple...
@aghileslounis
@aghileslounis 27 күн бұрын
Excellent, it reminds me of "sqlx" in Go. Does Prisma wrapps the RAW sql query in an additional thing, or does it run as it is? What about transactions, can we write them in RAW sql and expect to work correctly?
@andyheld3136
@andyheld3136 23 күн бұрын
I didnt try the feature yet, but in case of transaction you are on the safe side to use the prisma transactuon client.$transaction(async(txClient)=>{txClient.queryRawTyped(q1); txClient.queryRawTyped(q2);})
@Saru-Dono
@Saru-Dono 26 күн бұрын
It would be really cool if you could also define them directly in TS code. For example, if you export a string starting with `sqlPrisma` it gets picked up by the Prisma generator and is able to be used(ideally only within the context of the file)
@최지원-o9o
@최지원-o9o 14 күн бұрын
In order to use the features shown in the video, the database must be connected at the time of building the Prisma client. This is extremely inconvenient. I hope this will be improved soon so that the client can be built using only the Prisma schema information without the dependency on an actual database connection.
@oscarresonable2008
@oscarresonable2008 28 күн бұрын
Finally... ❤🎉 Thank you prisma.
@PrismaData
@PrismaData 28 күн бұрын
Thank you for being a member of the community!
@notrab
@notrab 27 күн бұрын
Great video @marc-hess!
@BarisPalabiyik
@BarisPalabiyik 28 күн бұрын
Great feature to migrate stuff from old repos too.
@Saru-Dono
@Saru-Dono 26 күн бұрын
This actually makes me want to go back to Prisma. Looks very impressive, I'm curious about it's limitations. The production quality could be better tho
@wandenreich770
@wandenreich770 28 күн бұрын
Interesting… definately will check this out
@PrismaData
@PrismaData 28 күн бұрын
Let us know what you think once you do!
@yassinesafraoui
@yassinesafraoui 24 күн бұрын
Interesting feature honestly, but last time I checked prisma wasn’t the best option for serverless, when is that gonna change?
@48265868
@48265868 6 күн бұрын
waw Prisma support raw SQL in a basic typesafe wrapper? So innovative... Glad it only took 10 years to figure out that it is a bad idea to abstract industri standart SQL.
@SARFEX
@SARFEX 28 күн бұрын
Woooow🎉
@codernerd7076
@codernerd7076 27 күн бұрын
Wish it had some kind of time zone protection build in so I always get the date and time back in New York time zone or something like that... now it's a mess 😢
@imsarvesh_
@imsarvesh_ 28 күн бұрын
Amazing..
@makedredd299
@makedredd299 28 күн бұрын
Where can I find a Prisma GraphQL course in regular JavaScript or NodeJS, that is updated and supported by a person or community? I want to learn how to build a complete GraphQL app without having to learn ReactJS web framework as a prerequisite.
Is Drizzle Really Better Than Prisma?
20:15
Web Dev Simplified
Рет қаралды 80 М.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 359 М.
From Small To Giant Pop Corn #katebrush #funny #shorts
00:17
Kate Brush
Рет қаралды 67 МЛН
Angry Sigma Dog 🤣🤣 Aayush #momson #memes #funny #comedy
00:16
ASquare Crew
Рет қаралды 51 МЛН
Stop With Software Estimates
16:54
ThePrimeTime
Рет қаралды 137 М.
How To Make AWS Not Suck
6:38
Fireship
Рет қаралды 509 М.
I am done with ViewModels...
11:15
Sebastian Sellmair
Рет қаралды 3,6 М.
Rust + Next-Gen SQL Databases = 😍
13:53
Code to the Moon
Рет қаралды 23 М.
The Only Database Abstraction You Need | Prime Reacts
21:42
ThePrimeTime
Рет қаралды 209 М.
The World Depends on 60-Year-Old Code No One Knows Anymore
9:30
Coding with Dee
Рет қаралды 810 М.
How I get Tweet data for FREE in 2024 as a data scientist
19:28
AI Spectrum
Рет қаралды 7 М.
This might change how we build UI forever
15:14
Theo - t3․gg
Рет қаралды 122 М.
Complex Schema Design with Drizzle ORM | Common Patterns
45:55
From Small To Giant Pop Corn #katebrush #funny #shorts
00:17
Kate Brush
Рет қаралды 67 МЛН