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

Function pgBaseDir

cmd/sqlc-test-setup/main.go:111–117  ·  view source on GitHub ↗

pgBaseDir returns the sqlc-specific directory where PostgreSQL is installed, using the user's cache directory (~/.cache/sqlc/postgresql on Linux).

()

Source from the content-addressed store, hash-verified

109// pgBaseDir returns the sqlc-specific directory where PostgreSQL is installed,
110// using the user's cache directory (~/.cache/sqlc/postgresql on Linux).
111func pgBaseDir() string {
112 cacheDir, err := os.UserCacheDir()
113 if err != nil {
114 cacheDir = filepath.Join(os.Getenv("HOME"), ".cache")
115 }
116 return filepath.Join(cacheDir, "sqlc", "postgresql")
117}
118
119// pgBinDir returns the path to the PostgreSQL bin directory.
120func pgBinDir() string {

Callers 4

pgBinDirFunction · 0.85
pgDataDirFunction · 0.85
installPostgreSQLFunction · 0.85
startPostgreSQLFunction · 0.85

Calls 1

JoinMethod · 0.45

Tested by

no test coverage detected