목차
Groovy SQL (Database)
withInstance
참고
Groovy SQL (Database)
groovy.sql.Sql
Groovy Working with relational database
withInstance
close()를 할 필요가 없다.
import
groovy.sql.Sql
Sql
.
withInstance
(
URL
, USERNAME, PASSWORD, JDBCDRIVER
)
{
sql
->
// code
}
참고
Groovy Goodness: Use Expanded Variables in SQL GString Query - Messages from mrhaki
JDBC with Groovy