MCPcopy Create free account
hub / github.com/cloudquery/cloudquery / processRows

Function processRows

plugins/destination/mssql/client/util.go:7–19  ·  view source on GitHub ↗
(rows *sql.Rows, process func(row *sql.Rows) error)

Source from the content-addressed store, hash-verified

5)
6
7func processRows(rows *sql.Rows, process func(row *sql.Rows) error) error {
8 defer rows.Close()
9
10 for next := true; next; next = rows.NextResultSet() {
11 for rows.Next() {
12 if err := process(rows); err != nil {
13 return err
14 }
15 }
16 }
17
18 return rows.Err()
19}

Callers 4

schemaTablesMethod · 0.85
ReadMethod · 0.85
getTableColumnsMethod · 0.85
getTablePKMethod · 0.85

Calls 2

NextMethod · 0.80
CloseMethod · 0.65

Tested by

no test coverage detected