dsn

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingScheme = errors.New("missing scheme in DSN: expected mysql://, postgres://, or postgresql://")

Functions

func Scheme

func Scheme(dsn string) string

func ToMySQLDSN

func ToMySQLDSN(dsn string) (string, error)

ToMySQLDSN converts a `mysql://user:pass@host:port/db?params` URI into the `user:pass@tcp(host:port)/db?params` format expected by go-sql-driver/mysql.

Types

This section is empty.

Jump to

Keyboard shortcuts

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