Skip to content

Commit 5f8ab29

Browse files
authored
Merge branch 'master' into master
2 parents f28342f + 689ccc2 commit 5f8ab29

File tree

7 files changed

+582
-10
lines changed

7 files changed

+582
-10
lines changed

CHANGELOG.md

+20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
### Tag v1.2.1 (2021.05.27)
2+
* Prevent panic on malformed auth data. [#557](https://github.com/go-mysql-org/go-mysql/pull/557) ([timvaillancourt](https://github.com/timvaillancourt))
3+
4+
### Tag v1.2.0 (2021.05.16)
5+
* Fix a rare bug in Conn.readResultStreaming. [#573](https://github.com/go-mysql-org/go-mysql/pull/573) ([atercattus](https://github.com/atercattus))
6+
* Fix tag. [#575](https://github.com/go-mysql-org/go-mysql/pull/575) ([atercattus](https://github.com/atercattus))
7+
* Update dependency. [#576](https://github.com/go-mysql-org/go-mysql/pull/576) ([Ehco1996](https://github.com/Ehco1996))
8+
9+
### Tag v1.1.2 (2021.04.20)
10+
* Fix canal test in readme. [#516](https://github.com/go-mysql-org/go-mysql/pull/516) ([gaojijun](https://github.com/gaojijun))
11+
* UUID clone. [#522](https://github.com/go-mysql-org/go-mysql/pull/522) ([lance6716](https://github.com/lance6716))
12+
* Sort mariadb gtid set. [#545](https://github.com/go-mysql-org/go-mysql/pull/545) ([zeminzhou](https://github.com/zeminzhou))
13+
* Mysql: use numeric comparison for binlog filename. [#547](https://github.com/go-mysql-org/go-mysql/pull/547) ([lance6716](https://github.com/lance6716))
14+
* Fix MySQL spell. [#549](https://github.com/go-mysql-org/go-mysql/pull/549) ([igoso](https://github.com/igoso))
15+
* Update README.md and CHANGELOG.md. [#564](https://github.com/go-mysql-org/go-mysql/pull/564) ([atercattus](https://github.com/atercattus))
16+
* Update method now may receive strings with GTID sets. [#569](https://github.com/go-mysql-org/go-mysql/pull/569) ([mialinx](https://github.com/mialinx))
17+
* Change module name from siddontang/go-mysql to go-mysql-org/go-mysql. [#571](https://github.com/go-mysql-org/go-mysql/pull/571) ([lance6716](https://github.com/lance6716))
18+
* Fix a bug that not cloned to original memory. [#572](https://github.com/go-mysql-org/go-mysql/pull/572) ([lance6716](https://github.com/lance6716))
19+
* Update README.md for a new tag. [#574](https://github.com/go-mysql-org/go-mysql/pull/574) ([atercattus](https://github.com/atercattus))
20+
121
### Tag v1.1.1 (2021.04.08)
222
* Restructured dump/ tests. [#563](https://github.com/go-mysql-org/go-mysql/pull/563) ([atercattus](https://github.com/atercattus))
323
* Replace magic numbers in canal/canal_test.go by constants. [#562](https://github.com/go-mysql-org/go-mysql/pull/562) ([atercattus](https://github.com/atercattus))

README.md

+18-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ A pure go library to handle MySQL network protocol and replication.
99
## How to migrate to this repo
1010
To change the used package in your repo it's enough to add this `replace` directive to your `go.mod`:
1111
```
12-
replace github.com/siddontang/go-mysql => github.com/go-mysql-org/go-mysql v1.1.2
12+
replace github.com/siddontang/go-mysql => github.com/go-mysql-org/go-mysql v1.2.1
1313
```
1414

15-
v1.1.2 - is the last tag in repo, feel free to choose what you want.
15+
v1.2.1 - is the last tag in repo, feel free to choose what you want.
1616

1717
## Changelog
1818
This repo uses [Changelog](CHANGELOG.md).
@@ -222,7 +222,7 @@ Tested MySQL versions for the client include:
222222
- 5.7.x
223223
- 8.0.x
224224

225-
### Example for SELECT streaming (v.1.1.1)
225+
### Example for SELECT streaming (v1.1.1)
226226
You can use also streaming for large SELECT responses.
227227
The callback function will be called for every result row without storing the whole resultset in memory.
228228
`result.Fields` will be filled before the first callback call.
@@ -243,6 +243,21 @@ err := conn.ExecuteSelectStreaming(`select id, name from table LIMIT 100500`, &r
243243
// ...
244244
```
245245

246+
### Example for connection pool (v1.3.0)
247+
248+
```go
249+
import (
250+
"github.com/go-mysql-org/go-mysql/client"
251+
)
252+
253+
pool := client.NewPool(log.Debugf, 100, 400, 5, "127.0.0.1:3306", `root`, ``, `test`)
254+
// ...
255+
conn, _ := pool.GetConn(ctx)
256+
defer pool.PutConn(conn)
257+
258+
conn.Execute() / conn.Begin() / etc...
259+
```
260+
246261
## Server
247262

248263
Server package supplies a framework to implement a simple MySQL server which can handle the packets from the MySQL client.

0 commit comments

Comments
 (0)