question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: Allow `$queryRaw` and `$executeRaw` in transactions

See original GitHub issue

As of today, it’s not possible yet, to do the following:

await prisma.$transaction([ prisma.$queryRaw`SELECT 1` ])

This is a feature request to both allow $queryRaw and $executeRaw being executed in a transaction.

If you have this use-case, please let us know in this issue.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
dpetrickcommented, Oct 22, 2020

This will be possible with the upcoming 2.10 release.

0reactions
Syttencommented, Oct 21, 2020

My use case is for locks and queries that are not yet supported. Currently I don’t have a way to get an advisory lock.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Raw database access (Reference) - Prisma
For relational databases, Prisma Client exposes four methods that allow you to send raw queries. You can use: $queryRaw to return actual records...
Read more >
SQL Queries - EF Core - Microsoft Learn
Entity Framework Core allows you to drop down to SQL queries when working with a relational database. SQL queries are useful if the...
Read more >
Raw SQL Query without DbSet - Entity Framework Core
This will allow you to execute raw SQL and get the raw results without having to define a POCO and a DBSet. See...
Read more >
How to Execute Raw SQL in SQLAlchemy - GeeksforGeeks
In this article, we will see how to write a Conventional SQL query in SQLAlchemy using text() against a PostgreSQL database in python....
Read more >
Dao (ORMLite Core 6.1 API)
Like queryBuilder() but allows you to build an DELETE statement. ... Return a row mapper that is suitable for use with queryRaw(String, RawRowMapper, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found