Add mysql driver

pull/1/head
maru 1 year ago
parent 4600b7b024
commit 8d3d24a58a
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D

@ -2,6 +2,8 @@ package db
import ( import (
"database/sql" "database/sql"
_ "github.com/go-sql-driver/mysql"
) )
func AddAccountRecord(uuid []byte, username string, key, salt []byte) error { func AddAccountRecord(uuid []byte, username string, key, salt []byte) error {

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

@ -2,6 +2,9 @@ module github.com/Flashfyre/pokerogue-server
go 1.21.4 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 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 h1:mMMrFzRSCF0GvB7Ne27XVtVAaXLrPmgPC7/v0tkwHaY=
golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4=
golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc=

Loading…
Cancel
Save