<html> | |
<head> | |
<title>Test Database Access</title> | |
</head> | |
<body> | |
<p>^p@{page import="groovy.sql.Sql, test.groovy.sql.TestHelper"}</p> | |
<p>^p%{sql = TestHelper.makeSql()<br> | |
type = 'cheese'<br> | |
sql.queryEach("select * from FOOD where type = ${type}") | |
{ }%</p> | |
<p>Found cheese ${it.name}</p> | |
<p>^p%{ } }%</p> | |
</body> | |
</html> |