@@ -54,7 +54,8 @@ def connect(host="localhost", user=None, password="",
54
54
client_flag = 0 , cursorclass = Cursor , init_command = None ,
55
55
connect_timeout = None , read_default_group = None ,
56
56
no_delay = None , autocommit = False , echo = False ,
57
- local_infile = False , loop = None , ssl = None , auth_plugin = '' ):
57
+ local_infile = False , loop = None , ssl = None , auth_plugin = '' ,
58
+ program_name = '' ):
58
59
"""See connections.Connection.__init__() for information about
59
60
defaults."""
60
61
coro = _connect (host = host , user = user , password = password , db = db ,
@@ -67,7 +68,7 @@ def connect(host="localhost", user=None, password="",
67
68
read_default_group = read_default_group ,
68
69
no_delay = no_delay , autocommit = autocommit , echo = echo ,
69
70
local_infile = local_infile , loop = loop , ssl = ssl ,
70
- auth_plugin = auth_plugin )
71
+ auth_plugin = auth_plugin , program_name = program_name )
71
72
return _ConnectionContextManager (coro )
72
73
73
74
@@ -126,6 +127,13 @@ def __init__(self, host="localhost", user=None, password="",
126
127
(default: False)
127
128
:param local_infile: boolean to enable the use of LOAD DATA LOCAL
128
129
command. (default: False)
130
+ :param ssl: Optional SSL Context to force SSL
131
+ :param auth_plugin: String to manually specify the authentication
132
+ plugin to use, i.e you will want to use mysql_clear_password
133
+ when using IAM authentication with Amazon RDS.
134
+ (default: Server Default)
135
+ :param program_name: Program name string to provide when
136
+ handshaking with MySQL. (default: sys.argv[0])
129
137
:param loop: asyncio loop
130
138
"""
131
139
self ._loop = loop or asyncio .get_event_loop ()
0 commit comments