mysql

package module
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL