golistic / pxmysql

Go MySQL driver using X Protocol
MIT License
14 stars 0 forks source link

Stop using env var for driver name configuration #39

Closed geertjanvdk closed 1 year ago

geertjanvdk commented 1 year ago

Adding the environment variable to change the behavior of how driver is registered was a bit to impulsive. Instead, it was pointed out by @jackwilsdon on Gophers Slack to actually use a sub-package that registers the name "mysql".

package yourstuff

import (
    _ "github.com/golistic/pxmysql/mysql"
)

Much better.