Hey guys I'm wondering if <https://github.com/pris...
# orm-help
a
Hey guys I'm wondering if https://github.com/prisma/prisma/issues/3846 will be solved pretty soon. Concurrency with Prisma is pretty hard to deal with - currently using 1.26.6 so if not I was wondering if there are ways to use raw sql queries
t
Pretty sure when it says they are working on a new ts client, they are meaning prisma 2. So you’ll probably have to wait for prisma 2 for transactions
👍 1
a
Makes sense
h
Yes, this is being solved with the new TS client. Also, here is a spec for the new raw api: https://github.com/prisma/specs/tree/master/photon-raw-api
a
@Harshit Is there any way that I can use the raw API for 1.26.6. like in https://github.com/prisma/prisma/issues/2052?
h
Yes, you can run raw SQL in Prisma 1. Here is the documentation for it: https://www.prisma.io/docs/1.27/prisma-graphql-api/reference/raw-database-access-qwe4/
a
Great - @Harshit would this mean that I can use transactions (basically do atomic updates) to the db?
h
Yes, you can perform any sql operation using this API