There was an error while loading. Please reload this page.
1 parent 584e5cc commit 86783dcCopy full SHA for 86783dc
dump/dump.go
@@ -20,6 +20,7 @@ type Dumper struct {
20
Addr string
21
User string
22
Password string
23
+Protocol string
24
25
// Will override Databases
26
Tables []string
@@ -143,6 +144,10 @@ func (d *Dumper) Dump(w io.Writer) error {
143
144
args = append(args, fmt.Sprintf("--max-allowed-packet=%dM", d.maxAllowedPacket))
145
}
146
147
+if d.Protocol != "" {
148
+args = append(args, fmt.Sprintf("--protocol=%s", d.Protocol))
149
+}
150
+
151
args = append(args, "--single-transaction")
152
args = append(args, "--skip-lock-tables")
153
0 commit comments