8000 Document that the ssl connection parameter can be an SSLContext (#1045) · PyMySQL/PyMySQL@b9e07c5 · GitHub
[go: up one dir, main page]

Skip to content

Commit b9e07c5

Browse files
authored
Document that the ssl connection parameter can be an SSLContext (#1045)
1 parent eb108a6 commit b9e07c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymysql/connections.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class Connection:
126126
:param init_command: Initial SQL statement to run when connection is established.
127127
:param connect_timeout: The timeout for connecting to the database in seconds.
128128
(default: 10, min: 1, max: 31536000)
129-
:param ssl: A dict of arguments similar to mysql_ssl_set()'s parameters.
129+
:param ssl: A dict of arguments similar to mysql_ssl_set()'s parameters or an ssl.SSLContext.
130130
:param ssl_ca: Path to the file that contains a PEM-formatted CA certificate.
131131
:param ssl_cert: Path to the file that contains a PEM-formatted client certificate.
132132
:param ssl_disabled: A boolean value that disables usage of TLS.

0 commit comments

Comments
 (0)
0