Groovy 4.0.0 adds SQL-like querying
Groovy 4.0.0 has arrived as a production release. The latest upgrade to the JVM-based language introduces new SQL-like query capabilities, sealed types, and switch expressions.GINQ, also known as Groovy-integrated Query or GQuery, is an incubating feature in Groovy 4.0.0. It supports querying collections in a SQL-like style. This might involve lists or maps, domain objects, or collections returned when processing such as JSON, XML, and other structured data. In a future version of Groovy, plans call for GQuery support for SQL databases where an optimized SQL query is generated based on the GQuery expression.To read this article in full, please click here
Groovy 4.0.0 has arrived as a production release. The latest upgrade to the JVM-based language introduces new SQL-like query capabilities, sealed types, and switch expressions.
GINQ, also known as Groovy-integrated Query or GQuery, is an incubating feature in Groovy 4.0.0. It supports querying collections in a SQL-like style. This might involve lists or maps, domain objects, or collections returned when processing such as JSON, XML, and other structured data. In a future version of Groovy, plans call for GQuery support for SQL databases where an optimized SQL query is generated based on the GQuery expression.