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

Method HasImports

internal/codegen/golang/imports.go:78–81  ·  view source on GitHub ↗
(filename string)

Source from the content-addressed store, hash-verified

76}
77
78func (i *importer) HasImports(filename string) bool {
79 imports := i.Imports(filename)
80 return len(imports[0]) != 0 || len(imports[1]) != 0
81}
82
83func (i *importer) Imports(filename string) [][]ImportSpec {
84 dbFileName := "db.go"

Callers

nothing calls this directly

Calls 1

ImportsMethod · 0.95

Tested by

no test coverage detected