DataSource

Configuring DataSource objects for Groovy database connections.

Groovy SQL Transactions and Connection Pooling with 10+ Examples

Groovy SQL transactions and connection pooling with 10+ examples. Learn withTransaction, savepoints, HikariCP integration, withBatch. “In databases, a transaction is a promise — all or nothing.” — Unknown Jim Gray, Transaction Processing Pioneer Last Updated: March 2026 | Tested on: Groovy 5.x, Java 17+ | Difficulty: Intermediate to Advanced | Reading Time: 19 minutes In the first tutorial we connected to databases and queried data. In the second tutorial we mastered CRUD operations. Now it is time to tackle the ... Read More