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"
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
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.