From 8d3d24a58a6e15aa0a3df231e3834b2c152c97a1 Mon Sep 17 00:00:00 2001 From: maru Date: Thu, 28 Dec 2023 19:58:54 -0500 Subject: [PATCH] Add mysql driver --- db/account.go | 2 ++ db/db.go | 2 ++ go.mod | 5 ++++- go.sum | 2 ++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/db/account.go b/db/account.go index 3cc8cdc..cef7e1f 100644 --- a/db/account.go +++ b/db/account.go @@ -2,6 +2,8 @@ package db import ( "database/sql" + + _ "github.com/go-sql-driver/mysql" ) func AddAccountRecord(uuid []byte, username string, key, salt []byte) error { diff --git a/db/db.go b/db/db.go index 135f1d7..73c42a1 100644 --- a/db/db.go +++ b/db/db.go @@ -3,6 +3,8 @@ package db import ( "database/sql" "fmt" + + _ "github.com/go-sql-driver/mysql" ) var handle *sql.DB diff --git a/go.mod b/go.mod index 8aded22..413b799 100644 --- a/go.mod +++ b/go.mod @@ -2,6 +2,9 @@ module github.com/Flashfyre/pokerogue-server go 1.21.4 -require golang.org/x/crypto v0.16.0 +require ( + github.com/go-sql-driver/mysql v1.7.1 + golang.org/x/crypto v0.16.0 +) require golang.org/x/sys v0.15.0 // indirect diff --git a/go.sum b/go.sum index 1bc566e..4c397c3 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,5 @@ +github.com/go-sql-driver/mysql v1.7.1 h1:lUIinVbN1DY0xBg0eMOzmmtGoHwWBbvnWubQUrtU8EI= +github.com/go-sql-driver/mysql v1.7.1/go.mod h1:OXbVy3sEdcQ2Doequ6Z5BW6fXNQTmx+9S1MCJN5yJMI= golang.org/x/crypto v0.16.0 h1:mMMrFzRSCF0GvB7Ne27XVtVAaXLrPmgPC7/v0tkwHaY= golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc=