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.

Allow to perform queries outside a db.transaction{ } block

See original GitHub issue

In geospatial-messenger, I am currently forced to use db.transaction { } (see MessageRepository).

It would be nice if Exposed could make it possible to support existing transaction management system like the one provided by Spring (see this documentation and DataSourceTransactionManager Javadoc).

Exposed could maybe allow to set the default db to use at Table level, delegate the transaction management to any kind of other mechanism and allow to perform queries with Table.foo() functions without a wrapping them into a db.transaction{ } block.

My goal is to be able, potentially with some extensions, to be able to annotate service functions with @Transactional and just rely on our regular JDBC based transaction management (more details here).

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:18
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Tapaccommented, May 22, 2020

Yes, it’s possible with spring-transaction or exposed-spring-boot modules.

0reactions
dragossusicommented, May 22, 2020

My goal is to be able, potentially with some extensions, to be able to annotate service functions with @Transactional and just rely on our regular JDBC based transaction management (more details here).

I thought he wants to use @Transactional with exposed methods

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understand and resolve SQL Server blocking problems
Resolve blocking issue by redesigning query and transaction. Now let's dive in to discuss how to pinpoint the main blocking session with an ......
Read more >
TransactionManagementError "You can't execute queries until ...
Django itself has the TransactionTestCase which allows you to test transactions and will flush the database between tests to isolate them.
Read more >
Troubleshoot blocked MySQL queries on Amazon RDS DB ...
2. Run this query to see which transactions are waiting and which transactions are blocking them. For MySQL 5.7 and earlier: SELECT r....
Read more >
Transactions in SQL Server for beginners
In order to define an implicit transaction, we need to enable the IMPLICIT_TRANSACTIONS option. The following query illustrates an example of an ...
Read more >
Documentation: 15: 3.4. Transactions - PostgreSQL
Transactions are a fundamental concept of all database systems. The essential point of a transaction is that it bundles multiple steps into a...
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