summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--main.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.go b/main.go
index cef556e..f97c639 100644
--- a/main.go
+++ b/main.go
@@ -33,8 +33,9 @@ var s *schema.Decoder
func main() {
flag.Parse()
- db, err := sql.Open(driverName, "test.sqlite")
- if err != nil {
+ db := openDB("")
+
+ if err := db.Ping(); err != nil {
log.Fatal(err)
}