Registry / database / gogf-mysql

gogf-mysql

JSON →
library1.6.0gogounverified

A MySQL driver for Go's database/sql package, based on the popular go-sql-driver/mysql.

go get github.com/gogf/mysql
INSTALL
IMPORT
SIG · GOGF-MYSQL
G
gogf-mysql
databasegov1.6.0
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/mysql

Open a MySQL database connection using database/sql.

package main import ( "database/sql" "fmt" _ "github.com/gogf/mysql" ) func main() { db, err := sql.Open("mysql", "user:password@tcp(127.0.0.1:3306)/dbname") if err != nil { panic(err) } defer db.Close() fmt.Println("Connected") }
Debug
Known issues
gotchaThis driver is a fork of go-sql-driver/mysql; ensure compatibility with your MySQL version.
fix
Refer to the original driver documentation for version-specific notes.
affects: all
Upgrade
Version history
1.6.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
Amazon
1
Resources
gogf-mysql — go get gogf-mysql · libregistry