Skip to content

Commit a732121

Browse files
authored
Update mysql.py
Add support for aurora-mysql engine
1 parent 138953f commit a732121

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

awswrangler/mysql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def connect(
168168
attrs: _db_utils.ConnectionAttributes = _db_utils.get_connection_attributes(
169169
connection=connection, secret_id=secret_id, catalog_id=catalog_id, dbname=dbname, boto3_session=boto3_session
170170
)
171-
if attrs.kind != "mysql":
171+
if attrs.kind not in ("mysql", "aurora-mysql"):
172172
raise exceptions.InvalidDatabaseType(f"Invalid connection type ({attrs.kind}. It must be a MySQL connection.)")
173173
return pymysql.connect(
174174
user=attrs.user,

0 commit comments

Comments
 (0)