pppaaattt
PPrisma
•Created by pppaaattt on 10/9/2024 in #help-and-questions
Typed SQL Queries for nested prisma/sql directories
I'll just add that I think the TypeScript API is still a superior DX where you can be very dynamic with the select and where clauses, for example. That offers a scalable, modular option while you are building your app. The Typed SQL option is probably only preferable for a single-purpose use case, like a complex query that is only needed in one place.
4 replies
PPrisma
•Created by pppaaattt on 10/9/2024 in #help-and-questions
Typed SQL Queries for nested prisma/sql directories
I actually found that underscores work such as
admin__get_chatsList.sql
which works for me now4 replies