feat(core, mysql): expose MySQL connection options to sqlx.toml - #4314
Open
XiNiHa wants to merge 1 commit into
Open
feat(core, mysql): expose MySQL connection options to sqlx.toml#4314XiNiHa wants to merge 1 commit into
XiNiHa wants to merge 1 commit into
Conversation
XiNiHa
force-pushed
the
feat/mysql-config
branch
from
June 18, 2026 05:24
179262d to
cbe35ff
Compare
XiNiHa
force-pushed
the
feat/mysql-config
branch
3 times, most recently
from
July 6, 2026 02:46
f3e4b6d to
be10fda
Compare
XiNiHa
force-pushed
the
feat/mysql-config
branch
2 times, most recently
from
September 1, 2026 10:45
2d4df71 to
89a4440
Compare
abonander
requested changes
Sep 10, 2026
| @@ -40,14 +40,38 @@ pub struct Config { | |||
| } | |||
|
|
|||
| /// Configuration for the MySQL database driver. | |||
Collaborator
There was a problem hiding this comment.
Because I'd expect people to overlook the note on drivers::Config, please copy the note here about this only applying for the macros and sqlx-cli. And possibly to the individual fields themselves as well.
I do think we'll eventually want to support embedding a config and applying it at runtime, but that doesn't exist right now.
Author
There was a problem hiding this comment.
XiNiHa
force-pushed
the
feat/mysql-config
branch
from
September 11, 2026 04:58
89a4440 to
511f80c
Compare
XiNiHa
force-pushed
the
feat/mysql-config
branch
from
September 11, 2026 05:11
511f80c to
297426f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Does your PR solve an issue?
related #3205
This PR makes two MySQL connection options configurable through
sqlx.toml, which are essential to some databases like StarRocks to be used with the SQLx CLI and the query macros.Is this a breaking change?
No. It only adds new methods and config options. Users don't get affected unless they explicitly opt in to using
sqlx.tomlwith the added config options. Defaults remain consistent.