The most complete and stable MySQL client library written completely in Go. For discussion, ideas, suggestions, feature requests etc, please visit the GoMySQL Google Group (link below). For any issues/bugs or need some help, please post an issue on Github.
Everytime I update my Go installation, I am unable to build my programs which rely on GoMySQL, e.g.
$ make
6g -o go.6 warden.go scrape.go
warden.go:22: can't find import: mysql
make: *\ [go.6] Error 1
I think this problem occurs because GoMySQL installs it's target to $GOROOT/pkg/$GOOS-$GOARCH/mysql.a. The base library directory gets wiped out when running $GOROOT/src/all.bash.
I think the solution to this problem is to change the Makefile so that
TARG=githib.com/Philio/GoMySQL
and change any imports to
import "github.com/Philio/GoMySQL"
It's less visually pleasing than import "mysql", but it keeps my build from breaking every time I update the Go compiler, not to mention preventing name clashes with anyone else who might call their package "mysql".
Everytime I update my Go installation, I am unable to build my programs which rely on GoMySQL, e.g.
$ make 6g -o go.6 warden.go scrape.go warden.go:22: can't find import: mysql make: *\ [go.6] Error 1
I think this problem occurs because GoMySQL installs it's target to $GOROOT/pkg/$GOOS-$GOARCH/mysql.a. The base library directory gets wiped out when running $GOROOT/src/all.bash.
I think the solution to this problem is to change the Makefile so that
TARG=githib.com/Philio/GoMySQL
and change any imports to
import "github.com/Philio/GoMySQL"
It's less visually pleasing than
import "mysql"
, but it keeps my build from breaking every time I update the Go compiler, not to mention preventing name clashes with anyone else who might call their package "mysql".