We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cf5482 commit 43e9befCopy full SHA for 43e9bef
dsn.go
@@ -36,8 +36,8 @@ var (
36
type Config struct {
37
User string // Username
38
Passwd string // Password (requires User)
39
- Net string // Network type
40
- 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")
41
DBName string // Database name
42
Params map[string]string // Connection parameters
43
ConnectionAttributes string // Connection Attributes, comma-delimited string of user-defined "key:value" pairs
0 commit comments