Categorygithub.com/bobg/sqlutil
modulepackage
1.1.0
Repository: https://github.com/bobg/sqlutil.git
Documentation: pkg.go.dev

# Functions

ForQueryRows encapsulates a lot of boilerplate when making db queries.
GetDB extracts the DB previously stored in ctx (or some parent of ctx) with WithDB.
Migrate executes database migrations.
No description provided by the author
QueryRowContext is just like the db.QueryRowContext method but additionally detects whether the query produces more than one row.
WithDB creates a child of the given context object containing a DB.

# Variables

No description provided by the author
ErrMultipleRows is the error produced by Row.Scan when the query has produced more than one row.

# Structs

Lease is the type of a lease acquired from a Lessor.
Lessor is a provider of leases.
Row is the type of result produced by QueryRowContext.

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author