We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 441743e commit fbf56c8Copy full SHA for fbf56c8
ibis-server/app/model/__init__.py
@@ -95,6 +95,9 @@ class MySqlConnectionInfo(BaseModel):
95
database: SecretStr
96
user: SecretStr
97
password: SecretStr
98
+ kwargs: dict[str, str] | None = Field(
99
+ description="Additional keyword arguments to pass to PyMySQL", default=None
100
+ )
101
102
103
class ConnectionUrl(BaseModel):
ibis-server/app/model/data_source.py
@@ -131,6 +131,7 @@ def get_mysql_connection(info: MySqlConnectionInfo) -> BaseBackend:
131
database=info.database.get_secret_value(),
132
user=info.user.get_secret_value(),
133
password=info.password.get_secret_value(),
134
+ **info.kwargs if info.kwargs else dict(),
135
)
136
137
@staticmethod
0 commit comments