golistic / pxmysql

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

refactor(driver)!: move driver registration to sub-packages #54

Closed geertjanvdk closed 1 year ago

geertjanvdk commented 1 year ago

We remove the init-function which registers the SQL driver when importing the main package github.com/golistic/pxmysql. Now, users must register (if wanted), using github.com/golistic/pxmysql/register.

If the "mysql" driver name needs to be registered, users can anonymously import github.com/golistic/pxmysql/register/mysql.

BREAKING CHANGING: With moving the registration to sub-packages, users will need to import (anonymously) github.com/golistic/pxmysql/register. We do not keep backwards compatibility.

Resolves #50