Skip to content

Commit a464739

Browse files
committed
add a section about context.Context to the README.
1 parent fd8a559 commit a464739

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,9 @@ Version 1.0 of the driver recommended adding `&charset=utf8` (alias for `SET NAM
443443

444444
See http://dev.mysql.com/doc/refman/5.7/en/charset-unicode.html for more details on MySQL's Unicode support.
445445

446+
## Context Support
447+
Go 1.8 added some `database/sql` methods that accept a `context.Context` parameter for better control over timeout and cancellation.
448+
See more details on [context support to database/sql package](https://golang.org/doc/go1.8#database_sql, "sql").
446449

447450
## Testing / Development
448451
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)