Skip to content

Commit 63ccb40

Browse files
committed
Update README.md
Add readTimeout and writeTimeout params
1 parent b88f271 commit 63ccb40

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Diff for: README.md

+20
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,16 @@ Default: false
231231
`parseTime=true` changes the output type of `DATE` and `DATETIME` values to `time.Time` instead of `[]byte` / `string`
232232

233233

234+
##### `readTimeout`
235+
236+
```
237+
Type: decimal number
238+
Default: 0
239+
```
240+
241+
I/O read timeout. The value must be a string of decimal numbers, each with optional fraction and a unit suffix ( *"ms"*, *"s"*, *"m"*, *"h"* ), such as *"30s"*, *"0.5m"* or *"1m30s"*.
242+
243+
234244
##### `strict`
235245

236246
```
@@ -265,6 +275,16 @@ Default: false
265275
`tls=true` enables TLS / SSL encrypted connection to the server. Use `skip-verify` if you want to use a self-signed or invalid certificate (server side). Use a custom value registered with [`mysql.RegisterTLSConfig`](http://godoc.org/github.com/go-sql-driver/mysql#RegisterTLSConfig).
266276

267277

278+
##### `writeTimeout`
279+
280+
```
281+
Type: decimal number
282+
Default: 0
283+
```
284+
285+
I/O write timeout. The value must be a string of decimal numbers, each with optional fraction and a unit suffix ( *"ms"*, *"s"*, *"m"*, *"h"* ), such as *"30s"*, *"0.5m"* or *"1m30s"*.
286+
287+
268288
##### System Variables
269289

270290
All other parameters are interpreted as system variables:

0 commit comments

Comments
 (0)