Skip to content

Commit 43e9bef

Browse files
authored
Improve DSN docstsrings (#1475)
1 parent 7cf5482 commit 43e9bef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dsn.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ var (
3636
type Config struct {
3737
User string // Username
3838
Passwd string // Password (requires User)
39-
Net string // Network type
40-
Addr string // Network address (requires Net)
39+
Net string // Network (e.g. "tcp", "tcp6", "unix". default: "tcp")
40+
Addr string // Address (default: "127.0.0.1:3306" for "tcp" and "/tmp/mysql.sock" for "unix")
4141
DBName string // Database name
4242
Params map[string]string // Connection parameters
4343
ConnectionAttributes string // Connection Attributes, comma-delimited string of user-defined "key:value" pairs

0 commit comments

Comments
 (0)