From 492fb07e66fff2bed4c6b545fe5ecde7316363a2 Mon Sep 17 00:00:00 2001 From: Brandon Dyck Date: Wed, 1 Apr 2020 20:39:29 -0600 Subject: [PATCH] Get rid of in-memory DB --- back/store.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/back/store.go b/back/store.go index b80a3ef..ca9b750 100644 --- a/back/store.go +++ b/back/store.go @@ -18,14 +18,9 @@ type Store struct { genString GenString } -const InMemory = ":memory:" - func NewStore(filename string, genString GenString) (*Store, error) { var needCreate bool - if filename == InMemory { - filename = "file::memory:?mode=memory" - needCreate = true - } else if _, err := os.Stat(filename); os.IsNotExist(err) { + if _, err := os.Stat(filename); os.IsNotExist(err) { needCreate = true } // If the file exists, then assume it was created properly.