File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Changes
22
3+ ## 1.6.0:
4+
5+ * Set Go version to 1.23.
6+
7+ * Added ` AllRows ` package function and ` All ` on statement types to
8+ range over rows and automatically close the result set.
9+
10+ * Added functions ` One ` and ` List ` for querying with
11+ generics. Modifications to types Stmt and NamedStmt to support
12+ generics may cause some small compatibility changes that should be
13+ quick to resolve with a search and replace. Both are now type
14+ aliases to attempt to minimize the impact of this change.
15+
16+ * fix for sql in-list parsing that will properly ignore question marks
17+ in comments and strings. This frequently caused a confusing error
18+ ("number of bindVars exceeds arguments").
19+
320## 1.5.0:
421
522This is the first major release of sqlx from this fork in order to fix
Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ In addition to the [godoc API documentation](http://godoc.org/github.com/jmoiron
2727there is also some [ user documentation] ( http://jmoiron.github.io/sqlx/ ) that
2828explains how to use ` database/sql ` along with sqlx.
2929
30- ## Recent Changes
30+ ## Changes compared to the original sqlx
31+
32+ 1.6.0:
3133
3234* Set Go version to 1.23.
3335
@@ -46,10 +48,6 @@ explains how to use `database/sql` along with sqlx.
4648
47491.5.0:
4850
49- This is the first major release of sqlx from this fork in order to fix
50- some issues which may cause some minor compatibility changes from
51- previous versions, depending on how you use sqlx.
52-
5351* VALUES bulk insertions were performed by a regex previously, now
5452 sqlx will use a tokenizer to parse the query and reliably expand the
5553 query for additional bound parameters. This fixes several bugs
@@ -74,11 +72,6 @@ previous versions, depending on how you use sqlx.
7472
7573* Adds Queryable interface to unify DB and Tx.
7674
77- These fixes are the results of upstream contributions submitted in PRs
78- to the original sqlx repository. Much thanks goes to everyone who
79- contributed their time and effort to make sqlx better. These fixes
80- vastly improve the usability of sqlx.
81-
8275### Backwards Compatibility
8376
8477Compatibility with the most recent two versions of Go is a requirement for any
Original file line number Diff line number Diff line change 44
55require (
66 github.com/lib/pq v1.10.9
7- github.com/vinovest/sqlx v1.5.2
7+ github.com/vinovest/sqlx v1.6.0
88)
99
1010require github.com/muir/sqltoken v0.1.0 // indirect
Original file line number Diff line number Diff line change 44
55require (
66 github.com/lib/pq v1.10.9
7- github.com/vinovest/sqlx v1.5.2
7+ github.com/vinovest/sqlx v1.6.0
88)
99
1010require github.com/muir/sqltoken v0.1.0 // indirect
Original file line number Diff line number Diff line change 44
55require (
66 github.com/lib/pq v1.10.9
7- github.com/vinovest/sqlx v1.5.2
7+ github.com/vinovest/sqlx v1.6.0
88)
99
1010require github.com/muir/sqltoken v0.1.0 // indirect
Original file line number Diff line number Diff line change 44
55require (
66 github.com/lib/pq v1.10.9
7- github.com/vinovest/sqlx v1.5.2
7+ github.com/vinovest/sqlx v1.6.0
88)
99
1010require github.com/muir/sqltoken v0.1.0 // indirect
Original file line number Diff line number Diff line change 44
55require (
66 github.com/lib/pq v1.10.9
7- github.com/vinovest/sqlx v1.5.2
7+ github.com/vinovest/sqlx v1.6.0
88)
99
1010require github.com/muir/sqltoken v0.1.0 // indirect
You can’t perform that action at this time.
0 commit comments