Skip to content

Commit e665264

Browse files
committed
update docs for 1.6
1 parent 97a6136 commit e665264

7 files changed

Lines changed: 25 additions & 15 deletions

File tree

CHANGES.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
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

522
This is the first major release of sqlx from this fork in order to fix

README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ In addition to the [godoc API documentation](http://godoc.org/github.com/jmoiron
2727
there is also some [user documentation](http://jmoiron.github.io/sqlx/) that
2828
explains 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

4749
1.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

8477
Compatibility with the most recent two versions of Go is a requirement for any

examples/bulk/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.23
44

55
require (
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

1010
require github.com/muir/sqltoken v0.1.0 // indirect

examples/generics/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.23
44

55
require (
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

1010
require github.com/muir/sqltoken v0.1.0 // indirect

examples/inlist/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.23
44

55
require (
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

1010
require github.com/muir/sqltoken v0.1.0 // indirect

examples/named/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.23
44

55
require (
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

1010
require github.com/muir/sqltoken v0.1.0 // indirect

examples/preparedstatements/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.23
44

55
require (
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

1010
require github.com/muir/sqltoken v0.1.0 // indirect

0 commit comments

Comments
 (0)