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
+4-1
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ A MySQL-Driver for Go's [database/sql](https://golang.org/pkg/database/sql/) pac
42
42
43
43
## Requirements
44
44
45
-
* Go 1.20 or higher. We aim to support the 3 latest versions of Go.
45
+
* Go 1.21 or higher. We aim to support the 3 latest versions of Go.
46
46
* MySQL (5.7+) and MariaDB (10.5+) are supported.
47
47
*[TiDB](https://github.com/pingcap/tidb) is supported by PingCAP.
48
48
* Do not ask questions about TiDB in our issue tracker or forum.
@@ -539,6 +539,9 @@ This driver supports the [`ColumnType` interface](https://golang.org/pkg/databas
539
539
Go 1.8 added `database/sql` support for `context.Context`. This driver supports query timeouts and cancellation via contexts.
540
540
See [context support in the database/sql package](https://golang.org/doc/go1.8#database_sql) for more details.
541
541
542
+
> [!IMPORTANT]
543
+
> The `QueryContext`, `ExecContext`, etc. variants provided by `database/sql` will cause the connection to be closed if the provided context is cancelled or timed out before the result is received by the driver.
544
+
542
545
543
546
### `LOAD DATA LOCAL INFILE` support
544
547
For this feature you need direct access to the package. Therefore you must change the import path (no `_`):
0 commit comments