MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / findPlugin

Function findPlugin

internal/cmd/generate.go:58–65  ·  view source on GitHub ↗
(conf config.Config, name string)

Source from the content-addressed store, hash-verified

56}
57
58func findPlugin(conf config.Config, name string) (*config.Plugin, error) {
59 for _, plug := range conf.Plugins {
60 if plug.Name == name {
61 return &plug, nil
62 }
63 }
64 return nil, fmt.Errorf("plugin not found")
65}
66
67func readConfig(stderr io.Writer, dir, filename string) (string, *config.Config, error) {
68 configPath := ""

Callers 1

codegenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected