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

Function PluginsDir

internal/cache/cache.go:25–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23}
24
25func PluginsDir() (string, error) {
26 cacheRoot, err := Dir()
27 if err != nil {
28 return "", err
29 }
30 dir := filepath.Join(cacheRoot, "plugins")
31 if err := os.MkdirAll(dir, 0755); err != nil && !os.IsExist(err) {
32 return "", fmt.Errorf("failed to create %s directory: %w", dir, err)
33 }
34 return dir, nil
35}
36
37func AnalysisDir() (string, error) {
38 cacheRoot, err := Dir()

Callers 1

loadAndCompileMethod · 0.92

Calls 2

DirFunction · 0.85
JoinMethod · 0.45

Tested by

no test coverage detected