summaryrefslogtreecommitdiff
path: root/handlers
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2023-12-26 05:44:42 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2023-12-26 05:44:42 +0530
commit59f1eb1219d744792f3bda9d7ab55338b028d2ac (patch)
treef8905a93ae05d1da78e61a5e2a191f878496b484 /handlers
parentfd03fd5968e5cd49120b9402acaa3e4ddfecda46 (diff)
README.md & handler: excluding go-sqlite for modernc-sqlite
Diffstat (limited to 'handlers')
-rw-r--r--handlers/handlers.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/handlers/handlers.go b/handlers/handlers.go
index b28bda0..cca1705 100644
--- a/handlers/handlers.go
+++ b/handlers/handlers.go
@@ -5,7 +5,7 @@ import (
"github.com/justsaumit/go-fis-api/models"
"github.com/justsaumit/go-fis-api/utils"
"github.com/labstack/echo/v4"
- _ "github.com/mattn/go-sqlite3"
+ _ "modernc.org/sqlite"
"log"
"net/http"
)
@@ -14,7 +14,7 @@ var db *sql.DB
func init() {
var err error
- db, err = sql.Open("sqlite3", "hashstore.db")
+ db, err = sql.Open("sqlite", "hashstore.db")
if err != nil {
log.Fatalf("sqlite3 not installed: %v", err)
}