Performs the given SQL query and return the rows of the result set. Example usage: def ans = sql.rows("select from PERSON where firstname like 'S%'") println "Found ${ans.size()} rows" Resource handling is performed automatically where appropriate. @param sql the SQL statement
(String sql)
| 1983 | * @throws SQLException if a database access error occurs |
| 1984 | */ |
| 1985 | public List<GroovyRowResult> rows(String sql) throws SQLException { |
| 1986 | return rows(sql, 0, 0, null); |
| 1987 | } |
| 1988 | |
| 1989 | /** |
| 1990 | * Performs the given SQL query and return a "page" of rows from the result set. A page is defined as starting at |
no test coverage detected