Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Mysql_async | 311 | 9 | 28 | a month ago | 59 | December 05, 2022 | 14 | apache-2.0 | Rust | |
Asyncronous Rust Mysql driver based on Tokio. | ||||||||||
Mariadb Connector C | 249 | a day ago | 16 | lgpl-2.1 | C | |||||
MariaDB Connector/C is used to connect applications developed in C/C++ to MariaDB and MySQL databases.The client library is LGPL licensed. | ||||||||||
Amy | 146 | 5 years ago | 3 | mit | C++ | |||||
A C++11 compliant header-only asynchronous MySQL client library based on Asio. Enables you to work with MySQL in both asynchronous and blocking ways. | ||||||||||
Squangle | 116 | 15 days ago | 2 | other | C++ | |||||
SQuangLe is a C++ API for accessing MySQL servers | ||||||||||
Pokernetwork | 56 | 9 years ago | 1 | other | Python | |||||
Go Mysqlpure | 23 | 9 years ago | June 03, 2021 | 2 | other | Go | ||||
MySQL client library written in pure Go / golang. | ||||||||||
Erltricity | 20 | 11 years ago | 4 | bsd-2-clause | Erlang | |||||
An Erlang Client library for the ThinkGear Socket Protocol | ||||||||||
Lorm | 19 | 3 years ago | 77 | March 04, 2020 | 1 | Python | ||||
A light weight python mysql client library. | ||||||||||
Ephp_mysql | 3 | 3 years ago | lgpl-2.1 | Erlang | ||||||
MySQL Client Library for ePHP (Bragful) |
This driver is only here for historic purposes.
For a more fully fetured mysql driver in go use:
The goal of this project is to implement the MySQL wire protocol in Go, mostly for my own amusement but it might become usable as a client library for other Go projects.
The wire protocol is documented here
For a more fully fetured mysql driver in go use:
$ go get github.com/thoj/go-mysqlpure
Three first 2 parameters are passed to Dial. Unix socket: net = unix, raddr = path to mysql.sock
dbh, error = mysql.Connect(net, raddr, username, password, database)
Select database
res, err = dbh.Use(database)
Run simple Query. AffectedRows and InsertId is in res
res, err = dbh.Query(sql)
Prepare server side statement
sth, err = dbh.Prepare(<SQL with ? placeholders>)
Execute prepared statement (Only supports string, int, float parameters):
res, err = sth.Execute(parameters ...)
Fetch row from query with result set
row, err = res.FetchRow()
Fetch one row as map[string]string
rowmap = res.FetchRowMap()
Fetch all rows as []map[string]string
rowsmap = res.FetchAllRowMap()
dbh.Query("SET NAMES utf8")
before the select query