You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-6Lines changed: 13 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -20,15 +20,22 @@ explains how to use `database/sql` along with sqlx.
20
20
21
21
## Recent Changes
22
22
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:
24
24
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`
26
29
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.
30
38
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).
0 commit comments