Help us shape the future of Go! Take the 2026 Go Developer Survey

mysql

package
v1.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package mysql is the MySQL dialect for the Dygo sql module, on go-sql-driver/mysql:

Imports: []*dygo.Module{mysql.Module()} // reads DATABASE_URL

DATABASE_URL is a mysql://user:pass@host:3306/db?param=value URL or the driver's own DSN (user:pass@tcp(host:3306)/db). parseTime=true is added unless the URL sets it, so DATETIME columns scan into time.Time, and so is clientFoundRows=true, so an UPDATE reports the rows it matched rather than only those it changed (an update with unchanged values is not "not found").

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dialect

func Dialect() sql.Dialect

Dialect returns the MySQL dialect, for sql.Open and tests.

func Module

func Module(opts ...sql.Option) *dygo.Module

Module returns sql.Module with the MySQL dialect.

Types

This section is empty.

Jump to

Keyboard shortcuts

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