From 59f1eb1219d744792f3bda9d7ab55338b028d2ac Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Tue, 26 Dec 2023 05:44:42 +0530 Subject: README.md & handler: excluding go-sqlite for modernc-sqlite --- handlers/handlers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'handlers/handlers.go') 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) } -- cgit v1.2.3