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

Method eachRow

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

Performs the given SQL query calling the given Closure with each row of the result set. The row will be a GroovyResultSet which is a ResultSet that supports accessing the fields using property style notation and ordinal index values. Example usages: sql.eachRow("s

(String sql, @ClosureParams(value=SimpleType.class, options="groovy.sql.GroovyResultSet") Closure closure)

Source from the content-addressed store, hash-verified

1425 * @throws SQLException if a database access error occurs
1426 */
1427 public void eachRow(String sql, @ClosureParams(value=SimpleType.class, options="groovy.sql.GroovyResultSet") Closure closure) throws SQLException {
1428 eachRow(sql, (Closure) null, closure);
1429 }
1430
1431 /**
1432 * Performs the given SQL query calling the given <code>closure</code> with each row of the result set starting at

Callers

nothing calls this directly

Calls 14

createConnectionMethod · 0.95
getStatementMethod · 0.95
moveCursorMethod · 0.95
cleanupMethod · 0.95
closeResourcesMethod · 0.95
getPreparedStatementMethod · 0.95
singletonListMethod · 0.95
getParametersMethod · 0.95
asSqlMethod · 0.95
executeQueryMethod · 0.80
callMethod · 0.65
getImplMethod · 0.45

Tested by

no test coverage detected