Skip to content

Glossary: Go in Practice

db.QueryContext

Also written: QueryContext, sql.Rows, rows.Next, rows.Err, rows.Close

Runs a query that returns many rows as a `*sql.Rows`. You step through it with `rows.Next()`, read each row with `rows.Scan`, check `rows.Err()` afterward, and `defer rows.Close()`.

Where the book teaches it

Related terms

ScanPlaceholder