You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-14
Original file line number
Diff line number
Diff line change
@@ -221,6 +221,14 @@ Note that this sets the location for time.Time values but does not change MySQL'
221
221
222
222
Please keep in mind, that param values must be [url.QueryEscape](http://golang.org/pkg/net/url/#QueryEscape)'ed. Alternatively you can manually replace the `/` with `%2F`. For example `US/Pacific` would be `loc=US%2FPacific`.
223
223
224
+
##### `maxAllowedPacket`
225
+
```
226
+
Type: decimal number
227
+
Default: 0
228
+
```
229
+
230
+
Max packet size allowed in bytes. Use `maxAllowedPacket=0` to automatically fetch the `max_allowed_packet` variable from server.
231
+
224
232
##### `multiStatements`
225
233
226
234
```
@@ -233,7 +241,6 @@ Allow multiple statements in one query. While this allows batch queries, it also
233
241
234
242
When `multiStatements` is used, `?` parameters must only be used in the first statement.
235
243
236
-
237
244
##### `parseTime`
238
245
239
246
```
@@ -254,7 +261,6 @@ Default: 0
254
261
255
262
I/O read timeout. The value must be a decimal number with an unit suffix ( *"ms"*, *"s"*, *"m"*, *"h"* ), such as *"30s"*, *"0.5m"* or *"1m30s"*.
256
263
257
-
258
264
##### `strict`
259
265
260
266
```
@@ -269,7 +275,6 @@ A server-side strict mode, which is safe for production use, can be set via the
269
275
270
276
By default MySQL also treats notes as warnings. Use [`sql_notes=false`](http://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_sql_notes) to ignore notes.
271
277
272
-
273
278
##### `timeout`
274
279
275
280
```
@@ -279,7 +284,6 @@ Default: OS default
279
284
280
285
*Driver* side connection timeout. The value must be a decimal number with an unit suffix ( *"ms"*, *"s"*, *"m"*, *"h"* ), such as *"30s"*, *"0.5m"* or *"1m30s"*. To set a server side timeout, use the parameter [`wait_timeout`](http://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_wait_timeout).
281
286
282
-
283
287
##### `tls`
284
288
285
289
```
@@ -290,7 +294,6 @@ Default: false
290
294
291
295
`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).
292
296
293
-
294
297
##### `writeTimeout`
295
298
296
299
```
@@ -301,15 +304,6 @@ Default: 0
301
304
I/O write timeout. The value must be a decimal number with an unit suffix ( *"ms"*, *"s"*, *"m"*, *"h"* ), such as *"30s"*, *"0.5m"* or *"1m30s"*.
302
305
303
306
304
-
##### `maxAllowedPacket`
305
-
```
306
-
Type: decimal number
307
-
Default: 0
308
-
```
309
-
310
-
Max packet size allowed in bytes. Use `maxAllowedPacket=0` to automatically fetch the `max_allowed_packet` variable from server.
311
-
312
-
313
307
##### System Variables
314
308
315
309
All other parameters are interpreted as system variables:
0 commit comments