create sqlite package

This commit is contained in:
nkanaev
2026-06-07 23:14:16 +01:00
parent 14835660fb
commit f29ad0c20a
14 changed files with 2 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
package storage
import (
"io"
"log"
"os"
"testing"
)
func testDB() *Storage {
log.SetOutput(io.Discard)
db, err := New(":memory:")
if err != nil {
panic(err)
}
log.SetOutput(os.Stderr)
return db
}
func TestStorage(t *testing.T) {
db, err := New(":memory:")
if err != nil {
t.Fatal(err)
}
if db == nil {
t.Fatal("no db")
}
}