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

Function validatePackage

internal/codegen/golang/opts/enum.go:19–24  ·  view source on GitHub ↗
(sqlPackage string)

Source from the content-addressed store, hash-verified

17}
18
19func validatePackage(sqlPackage string) error {
20 if _, found := validPackages[sqlPackage]; !found {
21 return fmt.Errorf("unknown SQL package: %s", sqlPackage)
22 }
23 return nil
24}
25
26const (
27 SQLDriverPGXV4 SQLDriver = "github.com/jackc/pgx/v4"

Callers 1

parseOptsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected