Documentation
¶
Overview ¶
Package dbconn provides a Factory that makes *sql.DB connections to MySQL.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Repo = &repo{ m: &sync.Map{}, }
Functions ¶
func NewConnFactory ¶
func NewConnFactory(awsConfig blip.AWSConfigFactory, modifyDB func(*sql.DB, string)) factory
NewConnFactory returns a blip.NewConnFactory that connects to MySQL. This is the only blip.NewConnFactor. It is created in Server.Defaults.
func ParseMyCnf ¶
ParseMyCnf parses a MySQL my.cnf file. It only reads the "[client]" section, same as the mysql CLI.
func RedactedDSN ¶
Types ¶
type CredentialFunc ¶
type CredentialFunc func(context.Context) (Credentials, error)
Click to show internal directories.
Click to hide internal directories.