MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / DefaultPath

Function DefaultPath

internal/appstate/store.go:27–32  ·  view source on GitHub ↗

DefaultPath returns the canonical SQLite database path.

()

Source from the content-addressed store, hash-verified

25
26// DefaultPath returns the canonical SQLite database path.
27func DefaultPath() string {
28 if path := os.Getenv("CAM_DB_PATH"); path != "" {
29 return path
30 }
31 return filepath.Join(pathutil.ConfigDir(), "cam.db")
32}
33
34// New returns a Store using path, or DefaultPath when path is empty.
35func New(path string) Store {

Callers 4

NewFunction · 0.92
dbPathMethod · 0.92
NewFunction · 0.70
openMethod · 0.70

Calls 1

ConfigDirFunction · 0.92

Tested by

no test coverage detected