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

Function validateDriver

internal/codegen/golang/opts/enum.go:40–45  ·  view source on GitHub ↗
(sqlDriver string)

Source from the content-addressed store, hash-verified

38}
39
40func validateDriver(sqlDriver string) error {
41 if _, found := validDrivers[sqlDriver]; !found {
42 return fmt.Errorf("unknown SQL driver: %s", sqlDriver)
43 }
44 return nil
45}
46
47func (d SQLDriver) IsPGX() bool {
48 return d == SQLDriverPGXV4 || d == SQLDriverPGXV5

Callers 1

parseOptsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected