Skip to content

Commit

Permalink
Improve DSN docstsrings (#1475)
Browse files Browse the repository at this point in the history
  • Loading branch information
golddranks authored Sep 1, 2023
1 parent 7cf5482 commit 43e9bef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dsn.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ var (
type Config struct {
User string // Username
Passwd string // Password (requires User)
Net string // Network type
Addr string // Network address (requires Net)
Net string // Network (e.g. "tcp", "tcp6", "unix". default: "tcp")
Addr string // Address (default: "127.0.0.1:3306" for "tcp" and "/tmp/mysql.sock" for "unix")
DBName string // Database name
Params map[string]string // Connection parameters
ConnectionAttributes string // Connection Attributes, comma-delimited string of user-defined "key:value" pairs
Expand Down

0 comments on commit 43e9bef

Please sign in to comment.