summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--cmd/perseus/main.go10
-rw-r--r--go.mod2
-rw-r--r--go.sum2
-rw-r--r--storage/sqlite3/init.go1
5 files changed, 15 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..98e6ef6
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*.db
diff --git a/cmd/perseus/main.go b/cmd/perseus/main.go
new file mode 100644
index 0000000..1533a3c
--- /dev/null
+++ b/cmd/perseus/main.go
@@ -0,0 +1,10 @@
+package main
+
+import (
+	"tildegit.org/andinus/perseus/storage"
+)
+
+func main() {
+	db := storage.Init()
+	defer db.Conn.Close()
+}
diff --git a/go.mod b/go.mod
index 9115fdc..8472b8b 100644
--- a/go.mod
+++ b/go.mod
@@ -1,3 +1,5 @@
 module tildegit.org/andinus/perseus
 
 go 1.13
+
+require github.com/mattn/go-sqlite3 v2.0.3+incompatible
diff --git a/go.sum b/go.sum
new file mode 100644
index 0000000..d674429
--- /dev/null
+++ b/go.sum
@@ -0,0 +1,2 @@
+github.com/mattn/go-sqlite3 v2.0.3+incompatible h1:gXHsfypPkaMZrKbD5209QV9jbUTJKjyR5WD3HYQSd+U=
+github.com/mattn/go-sqlite3 v2.0.3+incompatible/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc=
diff --git a/storage/sqlite3/init.go b/storage/sqlite3/init.go
index d199031..337d15b 100644
--- a/storage/sqlite3/init.go
+++ b/storage/sqlite3/init.go
@@ -2,7 +2,6 @@ package sqlite3
 
 import (
 	"database/sql"
-	"fmt"
 	"log"
 	"os"
 	"sync"