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

Function AnalysisDir

internal/cache/cache.go:37–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37func AnalysisDir() (string, error) {
38 cacheRoot, err := Dir()
39 if err != nil {
40 return "", err
41 }
42 dir := filepath.Join(cacheRoot, "query_analysis")
43 if err := os.MkdirAll(dir, 0755); err != nil && !os.IsExist(err) {
44 return "", fmt.Errorf("failed to create %s directory: %w", dir, err)
45 }
46 return dir, nil
47}

Callers 1

analyzeMethod · 0.92

Calls 2

DirFunction · 0.85
JoinMethod · 0.45

Tested by

no test coverage detected