MCPcopy
hub / github.com/sqlc-dev/sqlc / parseDriver

Function parseDriver

internal/codegen/golang/driver.go:5–14  ·  view source on GitHub ↗
(sqlPackage string)

Source from the content-addressed store, hash-verified

3import "github.com/sqlc-dev/sqlc/internal/codegen/golang/opts"
4
5func parseDriver(sqlPackage string) opts.SQLDriver {
6 switch sqlPackage {
7 case opts.SQLPackagePGXV4:
8 return opts.SQLDriverPGXV4
9 case opts.SQLPackagePGXV5:
10 return opts.SQLDriverPGXV5
11 default:
12 return opts.SQLDriverLibPQ
13 }
14}

Callers 7

buildQueriesFunction · 0.85
generateFunction · 0.85
dbImportsMethod · 0.85
buildImportsFunction · 0.85
queryImportsMethod · 0.85
batchImportsMethod · 0.85
postgresTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected