Skip to content

Commit 6d7e804

Browse files
author
Evan Shaw
committed
README improvements
1 parent 691ec98 commit 6d7e804

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -419,10 +419,9 @@ Version 1.0 of the driver recommended adding `&charset=utf8` (alias for `SET NAM
419419
See http://dev.mysql.com/doc/refman/5.7/en/charset-unicode.html for more details on MySQL's Unicode support.
420420

421421
## Context Support
422-
Since go1.8, context is introduced to `database/sql` for better control on timeout and cancellation.
423-
New interfaces such as `driver.QueryerContext`, `driver.ExecerContext` are introduced. See more details on [context support to database/sql package](https://golang.org/doc/go1.8#database_sql, "sql").
424-
425-
In Go-MySQL-Driver, we implemented these interfaces for structs `mysqlConn`, `mysqlStmt` and `mysqlTx`.
422+
Go 1.8 added some `database/sql` methods that accept a `context.Context` parameter for better control over timeout and cancellation.
423+
See more details on [context support to database/sql package](https://golang.org/doc/go1.8#database_sql, "sql").
424+
Go-MySQL-Driver supports context deadlines, but not cancellation.
426425

427426
## Testing / Development
428427
To run the driver tests you may need to adjust the configuration. See the [Testing Wiki-Page](https://github.com/go-sql-driver/mysql/wiki/Testing "Testing") for details.

0 commit comments

Comments
 (0)