-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat(mysql): add compression #4111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 5 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,7 @@ json = ["sqlx-core/json", "serde"] | |
| any = ["sqlx-core/any"] | ||
| offline = ["sqlx-core/offline", "serde/derive"] | ||
| migrate = ["sqlx-core/migrate"] | ||
| compression = ["zstd", "flate2"] | ||
|
|
||
| # Type Integration features | ||
| bigdecimal = ["dep:bigdecimal", "sqlx-core/bigdecimal"] | ||
|
|
@@ -67,6 +68,10 @@ stringprep = "0.1.2" | |
| tracing = { version = "0.1.37", features = ["log"] } | ||
| whoami = { version = "1.2.1", default-features = false } | ||
|
|
||
| # Compression | ||
| zstd = { version = "0.13.3", optional = true, default-features = false, features = ["zdict_builder"] } | ||
| flate2 = { version = "1.1.5", optional = true, default-features = false, features = ["rust_backend", "zlib"] } | ||
|
Comment on lines
+73
to
+74
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It'd be better if these were under separate features. Most of the time, the user should know which compression algorithms their server supports and it can be pretty annoying to deal with building dependencies you don't need.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have created two feature flags – |
||
|
|
||
| dotenvy.workspace = true | ||
| thiserror.workspace = true | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of requiring the
compressionfeature, you should either just#[cfg]out those tests or create a new test target.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added targets to the pipeline in order to run existing tests with enabled compression. Thus this change is not needed.