diff options
-rw-r--r-- | internal/programs/programs.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/programs/programs.go b/internal/programs/programs.go index dc508b9..5088444 100644 --- a/internal/programs/programs.go +++ b/internal/programs/programs.go @@ -54,7 +54,8 @@ func Instantiate( } func (p *DB) Open() error { - db, err := sql.Open("sqlite", p.Path) + var err error + p.db, err = sql.Open("sqlite", p.Path) if err != nil { return errors.WithMessage(err, "failed to open sqlite database") } |