Skip to content

Commit fbf56c8

Browse files
authored
chore(ibis): Added support for MySQL SSL connection (#1018)
1 parent 441743e commit fbf56c8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

ibis-server/app/model/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ class MySqlConnectionInfo(BaseModel):
9595
database: SecretStr
9696
user: SecretStr
9797
password: SecretStr
98+
kwargs: dict[str, str] | None = Field(
99+
description="Additional keyword arguments to pass to PyMySQL", default=None
100+
)
98101

99102

100103
class ConnectionUrl(BaseModel):

ibis-server/app/model/data_source.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ def get_mysql_connection(info: MySqlConnectionInfo) -> BaseBackend:
131131
database=info.database.get_secret_value(),
132132
user=info.user.get_secret_value(),
133133
password=info.password.get_secret_value(),
134+
**info.kwargs if info.kwargs else dict(),
134135
)
135136

136137
@staticmethod

0 commit comments

Comments
 (0)