Add mysql driver

pull/1/head
maru 2023-12-28 19:58:54 -05:00
parent 4600b7b024
commit 8d3d24a58a
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D
4 changed files with 10 additions and 1 deletions

View File

@ -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 {

View File

@ -3,6 +3,8 @@ package db
import (
"database/sql"
"fmt"
_ "github.com/go-sql-driver/mysql"
)
var handle *sql.DB

5
go.mod
View File

@ -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

2
go.sum
View File

@ -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=