Skip to content

Commit de9c517

Browse files
committed
README: Sort variables alphabetically
Also make linebreaks consistent
1 parent 68ea39f commit de9c517

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

README.md

+8-14
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,14 @@ Note that this sets the location for time.Time values but does not change MySQL'
221221

222222
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`.
223223

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+
224232
##### `multiStatements`
225233

226234
```
@@ -233,7 +241,6 @@ Allow multiple statements in one query. While this allows batch queries, it also
233241

234242
When `multiStatements` is used, `?` parameters must only be used in the first statement.
235243

236-
237244
##### `parseTime`
238245

239246
```
@@ -254,7 +261,6 @@ Default: 0
254261

255262
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"*.
256263

257-
258264
##### `strict`
259265

260266
```
@@ -269,7 +275,6 @@ A server-side strict mode, which is safe for production use, can be set via the
269275

270276
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.
271277

272-
273278
##### `timeout`
274279

275280
```
@@ -279,7 +284,6 @@ Default: OS default
279284

280285
*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).
281286

282-
283287
##### `tls`
284288

285289
```
@@ -290,7 +294,6 @@ Default: false
290294

291295
`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).
292296

293-
294297
##### `writeTimeout`
295298

296299
```
@@ -301,15 +304,6 @@ Default: 0
301304
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"*.
302305

303306

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-
313307
##### System Variables
314308

315309
All other parameters are interpreted as system variables:

0 commit comments

Comments
 (0)