Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrEmptyDsn defines error returned when no dsn is provided ErrEmptyDsn = errors.New("empty string provided for dsn") // ErrInvalidDsn defines error returned when the dsn is invalid ErrInvalidDsn = errors.New("invalid dsn") )
Functions ¶
This section is empty.
Types ¶
type DSN ¶
type DSN struct {
Type string
Username string
Password string
Protocol string
Address string
Host string
Port string
DataSource string
Params map[string]string
}
DSN describes how a DSN looks like
func Parse ¶
Parse turns a dsn string into a parsed DSN struct. From https://play.golang.org/p/H3rbC4npryN
Click to show internal directories.
Click to hide internal directories.