groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wilson MacGyver <wmacgy...@gmail.com>
Subject @compileStatic and groovy.sql
Date Wed, 22 Jun 2016 17:36:57 GMT
Hi,

If I want to use compileStatic with groovy.sql, how would I do that?


the problem as far as I can tell is

sql.eachRow("select id,.... from whatever") { foo ->
...
  foo.id
}

returns data that is known at runtime

but at compile time. there is no way to know that the SQL statement returns
a
id column.

is there a way to do it?

Thanks,
Mac

-- 
Omnem crede diem tibi diluxisse supremum.

Mime
View raw message