Skip to content

Commit e8d91d2

Browse files
committed
recent changes -> describe changes since the v1.2.0 tag
1 parent 772552f commit e8d91d2

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

README.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,22 @@ explains how to use `database/sql` along with sqlx.
2020

2121
## Recent Changes
2222

23-
* The [introduction](https://github.com/jmoiron/sqlx/pull/387) of `sql.ColumnType` sets the required minimum Go version to 1.8.
23+
1.3.0:
2424

25-
* sqlx/types.JsonText has been renamed to JSONText to follow Go naming conventions.
25+
* `sqlx.DB.Connx(context.Context) *sqlx.Conn`
26+
* `sqlx.BindDriver(driverName, bindType)`
27+
* support for `[]map[string]interface{}` to do "batch" insertions
28+
* allocation & perf improvements for `sqlx.In`
2629

27-
This breaks backwards compatibility, but it's in a way that is trivially fixable
28-
(`s/JsonText/JSONText/g`). The `types` package is both experimental and not in
29-
active development currently.
30+
DB.Connx returns an `sqlx.Conn`, which is an `sql.Conn`-alike consistent with
31+
sqlx's wrapping of other types.
32+
33+
`BindDriver` allows users to control the bindvars that sqlx will use for drivers,
34+
and add new drivers at runtime. This results in a very slight performance hit
35+
when resolving the driver into a bind type (~40ns per call), but it allows users
36+
to specify what bindtype their driver uses even when sqlx has not been updated
37+
to know about it by default.
3038

31-
* Using Go 1.6 and below with `types.JSONText` and `types.GzippedText` can be _potentially unsafe_, **especially** when used with common auto-scan sqlx idioms like `Select` and `Get`. See [golang bug #13905](https://github.com/golang/go/issues/13905).
3239

3340
### Backwards Compatibility
3441

0 commit comments

Comments
 (0)