Documentation
¶
Overview ¶
Package mysql links the MySQL/MariaDB driver into a Nucleus application.
Import it for its side effect, once, anywhere in the program:
import _ "github.com/jcsvwinston/nucleus/drivers/mysql"
It registers go-sql-driver/mysql under "mysql", which is what pkg/db resolves a mysql:// URL to, and it registers how that driver reports a unique-constraint violation so db.IsUniqueViolation keeps answering correctly.
Click to show internal directories.
Click to hide internal directories.