Registry / database / gogf-gf-contrib-drivers-mysql-v2

gogf-gf-contrib-drivers-mysql-v2

JSON →
library2.10.2gogounverified

Package mysql implements gdb.Driver, which supports operations for database MySQL.

go get github.com/gogf/gf/contrib/drivers/mysql/v2
INSTALL
IMPORT
SIG · GOGF-GF-CONTRIB-DR
G
gogf-gf-contrib-drivers-mysql-v2
databasegov2.10.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mysql
github.com/gogf/gf/contrib/drivers/mysql/v2

Registers the MySQL driver and creates a database connection.

package main import ( "fmt" _ "github.com/gogf/gf/contrib/drivers/mysql/v2" "github.com/gogf/gf/v2/database/gdb" ) func main() { db, _ := gdb.New(gdb.ConfigNode{ Type: "mysql", Link: "root:password@tcp(127.0.0.1:3306)/test", }) fmt.Println(db.Ping()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.10.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
gogf-gf-contrib-drivers-mysql-v2 — go get gogf-gf-contrib-drivers-mysql-v2 · libregistry