Added to pass ssl_mode in configuration. (#347)

This commit is contained in:
migimigi
2019-12-03 19:58:32 +09:00
committed by Inada Naoki
parent 102fe7b990
commit 1a5ae1daf8
4 changed files with 65 additions and 4 deletions

View File

@ -102,6 +102,13 @@ class Connection(_mysql.connection):
:param int client_flag:
flags to use or 0 (see MySQL docs or constants/CLIENTS.py)
:param str ssl_mode:
specify the security settings for connection to the server;
see the MySQL documentation for more details
(mysql_option(), MYSQL_OPT_SSL_MODE).
Only one of 'DISABLED', 'PREFERRED', 'REQUIRED',
'VERIFY_CA', 'VERIFY_IDENTITY' can be specified.
:param dict ssl:
dictionary or mapping contains SSL connection parameters;
see the MySQL documentation for more details