Skip to content

Commit c54207a

Browse files
committed
version 1.7.0
1 parent d755197 commit c54207a

8 files changed

Lines changed: 23 additions & 6 deletions

File tree

CHANGES.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Changes
22

3+
## 1.7.0:
4+
5+
* Better scanning in the case of outer joins. If a struct contains a nested
6+
struct pointer, it will no longer be a scan error.
7+
8+
* Made complex joins easier to scan by using the position of the field
9+
to help map duplicate column names into structs. See the [joins
10+
example](./examples/joins/main.go).
11+
12+
* Improved "unsafe" mode at the DB level. "Unsafe" isn't all that
13+
unsafe, it really is just an additional check when scanning rows. If
14+
there's a column in the row result that can't be mapped to the
15+
struct, sqlx will return a "missing destination name" error. A new
16+
WithUnsafe option for Connect and Open allows you to turn this off.
17+
318
## 1.6.0:
419

520
* Set Go version to 1.23.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ explains how to use `database/sql` along with sqlx.
2929

3030
## Changes compared to the original sqlx
3131

32+
1.7.0
33+
3234
* Better scanning in the case of outer joins. If a struct contains a nested
3335
struct pointer, it will no longer be a scan error.
3436

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.6.0
7+
github.com/vinovest/sqlx v1.7.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.6.0
7+
github.com/vinovest/sqlx v1.7.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.6.0
7+
github.com/vinovest/sqlx v1.7.0
88
)
99

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

examples/joins/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.6.0
7+
github.com/vinovest/sqlx v1.7.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.6.0
7+
github.com/vinovest/sqlx v1.7.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.6.0
7+
github.com/vinovest/sqlx v1.7.0
88
)
99

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

0 commit comments

Comments
 (0)