Groovy

Groovy programming language tutorials, examples, and best practices.

Groovy SQL Update and Delete – 13 Tested Examples with H2

Groovy SQL update and delete operations with 13+ examples. Covers executeUpdate, parameterized queries, batch updates, and soft deletes. Tested on Groovy 5.0.6. “The ability to destroy data is just as important as the ability to create it. The trick is knowing which rows to touch.” Last Updated: July 2026 | Tested on: Groovy 5.0.6, Java 17+ | Difficulty: Intermediate | Reading Time: 25 minutes So you’ve connected to a database and you know how to read data. Great. But reading ... Read More

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.” Last Updated: July 2026 | Tested on: Groovy 5.0.6, 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 two pillars of production database programming: transactions ... Read More

Groovy SQL CRUD – Insert, Update, Delete with 10+ Examples

Groovy SQL insert, update, delete, and read (CRUD) operations with 10+ examples. Learn execute(), executeInsert(), executeUpdate(), batch inserts, transactions, and prepared statements. “Create, Read, Update, Delete — four operations that power every application.” Last Updated: July 2026 | Tested on: Groovy 5.0.6, Java 17+ | Difficulty: Intermediate | Reading Time: 18 minutes Querying a database is only half the story – real applications need groovy sql insert, update, and delete operations too. Building on the connection basics from our previous ... Read More