sqlrows

package
v0.0.0-...-5091a59 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 11 Imported by: 9

Documentation

Overview

Package sqlrows defines an Analyzer that checks for mistakes using sql.Rows.

Index

Constants

View Source
const Doc = `` /* 506-byte string literal not displayed */

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "sqlrows",
	Doc:  Doc,
	Requires: []*analysis.Analyzer{
		inspect.Analyzer,
		buildssa.Analyzer,
	},
	Flags: func() flag.FlagSet {
		flagSet := flag.NewFlagSet("sqlrows", flag.ExitOnError)
		flagCheckErr = flagSet.Bool("checkerr", false, "check whether rows.Err() has been called")
		return *flagSet
	}(),
	Run: run,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL