@ -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 {
@ -3,6 +3,8 @@ package db
"fmt"
var handle *sql.DB
@ -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
@ -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=