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-8
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ A MySQL-Driver for Go's [database/sql](https://golang.org/pkg/database/sql/) pac
47
47
## Installation
48
48
Simple install the package to your [$GOPATH](https://github.com/golang/go/wiki/GOPATH"GOPATH") with the [go tool](https://golang.org/cmd/go/"go command") from shell:
49
49
```bash
50
-
$ go get github.com/go-sql-driver/mysql
50
+
$ go get -u github.com/go-sql-driver/mysql
51
51
```
52
52
Make sure [Git is installed](https://git-scm.com/downloads) on your machine and in your system's `PATH`.
53
53
@@ -344,9 +344,9 @@ Any other parameters are interpreted as system variables:
* The values for string variables must be quoted with '
347
+
* The values for string variables must be quoted with `'`.
348
348
* The values must also be [url.QueryEscape](http://golang.org/pkg/net/url/#QueryEscape)'ed!
349
-
(which implies values of string variables must be wrapped with `%27`)
349
+
(which implies values of string variables must be wrapped with `%27`).
350
350
351
351
Examples:
352
352
*`autocommit=1`: `SET autocommit=1`
@@ -426,7 +426,7 @@ See the [godoc of Go-MySQL-Driver](https://godoc.org/github.com/go-sql-driver/my
426
426
427
427
428
428
### `time.Time` support
429
-
The default internal output type of MySQL `DATE` and `DATETIME` values is `[]byte` which allows you to scan the value into a `[]byte`, `string` or `sql.RawBytes` variable in your programm.
429
+
The default internal output type of MySQL `DATE` and `DATETIME` values is `[]byte` which allows you to scan the value into a `[]byte`, `string` or `sql.RawBytes` variable in your program.
430
430
431
431
However, many want to scan MySQL `DATE` and `DATETIME` values into `time.Time` variables, which is the logical opposite in Go to `DATE` and `DATETIME` in MySQL. You can do that by changing the internal output type from `[]byte` to `time.Time` with the DSN parameter `parseTime=true`. You can set the default [`time.Time` location](https://golang.org/pkg/time/#Location) with the `loc` DSN parameter.
432
432
@@ -466,13 +466,13 @@ Mozilla summarizes the license scope as follows:
466
466
467
467
468
468
That means:
469
-
* You can **use** the **unchanged** source code both in private and commercially
470
-
* When distributing, you **must publish** the source code of any **changed files** licensed under the MPL 2.0 under a) the MPL 2.0 itself or b) a compatible license (e.g. GPL 3.0 or Apache License 2.0)
471
-
* You **needn't publish** the source code of your library as long as the files licensed under the MPL 2.0 are **unchanged**
469
+
* You can **use** the **unchanged** source code both in private and commercially.
470
+
* When distributing, you **must publish** the source code of any **changed files** licensed under the MPL 2.0 under a) the MPL 2.0 itself or b) a compatible license (e.g. GPL 3.0 or Apache License 2.0).
471
+
* You **needn't publish** the source code of your library as long as the files licensed under the MPL 2.0 are **unchanged**.
472
472
473
473
Please read the [MPL 2.0 FAQ](https://www.mozilla.org/en-US/MPL/2.0/FAQ/) if you have further questions regarding the license.
474
474
475
-
You can read the full terms here: [LICENSE](https://raw.github.com/go-sql-driver/mysql/master/LICENSE)
475
+
You can read the full terms here: [LICENSE](https://raw.github.com/go-sql-driver/mysql/master/LICENSE).
476
476
477
477

0 commit comments