Skip to content

Glossary: Go in Practice

db.QueryRowContext

Also written: QueryRowContext

Runs a query expected to return one row. You chain `Scan` onto it, and it gives `sql.ErrNoRows` if nothing matched.

Where the book teaches it

Related terms

Scansql.ErrNoRows