Convert JDBC Result sets to xml

2016-07-29 Thread GroovyBeginner
Is there any approach of converting the JDBC result sets to xml dynamically with out specifying the tags in xml as column names. I am using the following code import groovy.sql.Sql; import java.sql.ResultSet; Sql sql = Sql.newInstance("jdbc:oracle:thin:@localhost:1521:XE","username", "password"

Re: Convert JDBC Result sets to xml

2016-07-29 Thread Paul King
Do you want something like this? def rows = [[ID:1, NAME:'Test1'], [ID:2, NAME:'Test2']] def mb = new groovy.xml.MarkupBuilder() mb.root { rows.each { next -> row { next.each { k, v -> "$k"(v) } } } } On Sat, Jul 30, 2016 at 3:43 AM, GroovyBeginner wrote: > Is th

ObjectRange in master

2016-07-29 Thread Paul King
We made a few changes to ObjectRange recently on the master branch (so no releases as of yet). I was going to rollback just the attempts to provide a thread-safe iterator since it doesn't really provide full thread safety, so might be misleading. Any objections? Cheers, Paul.