Registry / database / groovy-sql

groovy-sql

JSON →
library3.0.25javamavenunverified

Groovy SQL provides a simpler and more Groovy-like API for working with JDBC, making database operations more concise and expressive.

<dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-sql</artifactId> <version>3.0.25</version> </dependency>
INSTALL
IMPORT
SIG · GROOVY-SQL
G
groovy-sql
databasejavav3.0.25
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Sql
groovy.sql.Sql

Minimal Groovy SQL usage to connect to an H2 in-memory database, create a table, insert a row, and query it.

import groovy.sql.Sql def sql = Sql.newInstance('jdbc:h2:mem:test', 'sa', '', 'org.h2.Driver') sql.execute('CREATE TABLE users (id INT, name VARCHAR(255))') sql.execute("INSERT INTO users VALUES (1, 'Alice')") sql.eachRow('SELECT * FROM users') { row -> println "${row.id}: ${row.name}" }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.0.25latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
groovy-sql — mvn dependency:get groovy-sql · libregistry