dbconn

package
v0.0.0-...-6530c03 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package dbconn provides a Factory that makes *sql.DB connections to MySQL.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Make

func Make() (*sql.DB, string, error)

func ParseMyCnf

func ParseMyCnf(file string) (config.MySQL, error)

ParseMyCnf parses a MySQL my.cnf file. It only reads the "[client]" section, same as the mysql CLI.

func RedactedDSN

func RedactedDSN(dsn string) string

func SetConfig

func SetConfig(cfg config.MySQL)

func Sockets

func Sockets() []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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