Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func DebugQuery ¶
func DebugQuery(q string)
func ValidateSqlQuery ¶
func ValidateSqlQuery(ctx VetContext, queryStr string) error
Types ¶
type ColumnUsed ¶
type MatchedSqlFunc ¶
type QuerySite ¶
func CheckDir ¶
func CheckDir(ctx VetContext, dir string, extraMatchers []SqlFuncMatcher) ([]*QuerySite, error)
type SqlFuncMatchRule ¶
type SqlFuncMatcher ¶
type SqlFuncMatcher struct { PkgPath string `toml:"pkg_path"` Rules []SqlFuncMatchRule `toml:"rules"` // contains filtered or unexported fields }
func (*SqlFuncMatcher) IterPackageExportedFuncs ¶
func (s *SqlFuncMatcher) IterPackageExportedFuncs(cb func(*types.Func))
func (*SqlFuncMatcher) MatchSqlFuncs ¶
func (s *SqlFuncMatcher) MatchSqlFuncs(prog *ssa.Program) []MatchedSqlFunc
func (*SqlFuncMatcher) PackageImported ¶
func (s *SqlFuncMatcher) PackageImported() bool
func (*SqlFuncMatcher) SetGoPackage ¶
func (s *SqlFuncMatcher) SetGoPackage(p *packages.Package)
type SqlVetAnnotation ¶
type SqlVetAnnotation struct {
Ignore bool
}
func ParseComment ¶
func ParseComment(comment string) (SqlVetAnnotation, error)
type VetContext ¶
Click to show internal directories.
Click to hide internal directories.