Allow to perform queries outside a db.transaction{ } block
See original GitHub issueIn 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:
- Created 8 years ago
- Reactions:18
- Comments:6 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, it’s possible with
spring-transaction
orexposed-spring-boot
modules.I thought he wants to use @Transactional with exposed methods