Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DSN ¶
type DSN struct {
// contains filtered or unexported fields
}
DSN represents a parsed datasource. It contains fields for the individual connection components.
func DsnFromString ¶
dsnFromString parses a connection string into a dsn. It will attempt to parse the string as a URL and as a set of key=value pairs. If both attempts fail, dsnFromString will return an error.
func (DSN) GetConnectionString ¶
GetConnectionString returns the URL to pass to the driver for database connections. This value should not be logged.
func (*DSN) SetUserAndOptions ¶
Click to show internal directories.
Click to hide internal directories.