refactor: remove AX_DB_PATH env var support from store layer
Some checks failed
Build and Push Docker Container / build-and-push (push) Has been cancelled
Build and Publish APK Package / build-apk (push) Has been cancelled

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-02 03:07:42 +02:00
parent 595bb78599
commit 4374befa42

View File

@@ -77,12 +77,6 @@ func FindAndOpenSQLiteStore() (GraphStore, error) {
// mode: if no .ax.db is found it creates and initialises one in the current // mode: if no .ax.db is found it creates and initialises one in the current
// working directory instead of returning an error. // working directory instead of returning an error.
func FindOrInitSQLiteStore() (GraphStore, error) { func FindOrInitSQLiteStore() (GraphStore, error) {
if dbpath := os.Getenv("AX_DB_PATH"); dbpath != "" {
if err := InitSQLiteStore(dbpath); err != nil {
return nil, err
}
return NewSQLiteStore(dbpath)
}
dir, err := filepath.Abs(".") dir, err := filepath.Abs(".")
if err != nil { if err != nil {
return nil, err return nil, err