MCPcopy Index your code
hub / github.com/apache/groovy / rows

Method rows

subprojects/groovy-sql/src/main/java/groovy/sql/Sql.java:1985–1987  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 1

firstRowMethod · 0.95

Calls 9

createQueryCommandMethod · 0.95
setMaxRowsMethod · 0.95
executeMethod · 0.95
asListMethod · 0.95
closeResourcesMethod · 0.95
singletonListMethod · 0.95
getParametersMethod · 0.95
asSqlMethod · 0.95

Tested by

no test coverage detected