Package mysql wraps mysql driver as an adapter for REL.
Deprecated: Please use github.com/go-rel/mysql instead.
Usage:
// open mysql connection.
// note: `clientFoundRows=true` is required for update and delete to works correctly.
adapter, err := mysql.Open("root@(127.0.0.1:3306)/rel_test?clientFoundRows=true&charset=utf8&parseTime=True&loc=Local")
if err != nil {
panic(err)
}
defer adapter.Close()
// initialize REL's repo.
repo := rel.New(adapter)
New mysql adapter using existing connection.
Existing connection nneds to be created with `clientFoundRows=true` options for update and delete to works correctly.
Deprecated: Please use github.com/go-rel/mysql instead.