Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deps): update rust crate sqlx to 0.7.4 (#85)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [sqlx](https://github.com/launchbadge/sqlx) | dependencies | patch | `0.7` -> `0.7.4` | --- ### Release Notes <details> <summary>launchbadge/sqlx (sqlx)</summary> ### [`v0.7.4`](https://github.com/launchbadge/sqlx/blob/HEAD/CHANGELOG.md#074---2024-03-11) [Compare Source](https://github.com/launchbadge/sqlx/compare/v0.7.3...v0.7.4) 38 pull requests were merged this release cycle. This is officially the **last** release of the 0.7.x release cycle. As of this release, development of 0.8.0 has begun on `main` and only high-priority bugfixes may be backported. ##### Added - \[[#​2891]]: feat: expose getters for connect options fields \[\[[@​saiintbrisson](https://github.com/saiintbrisson)]] - \[[#​2902]]: feat: add `to_url_lossy` to connect options \[\[[@​lily-mosquitoes](https://github.com/lily-mosquitoes)]] - \[[#​2927]]: Support `query!` for cargo-free systems \[\[[@​kshramt](https://github.com/kshramt)]] - \[[#​2997]]: doc(FAQ): add entry explaining prepared statements \[\[[@​abonander](https://github.com/abonander)]] - \[[#​3001]]: Update README to clarify MariaDB support \[\[[@​iangilfillan](https://github.com/iangilfillan)]] - \[[#​3004]]: feat(logging): Add numeric elapsed time field elapsed_secs \[\[[@​iamjpotts](https://github.com/iamjpotts)]] - \[[#​3007]]: feat: add `raw_sql` API \[\[[@​abonander](https://github.com/abonander)]] - This hopefully makes it easier to find how to execute statements which are not supported by the default prepared statement interfaces `query*()` and `query!()`. - Improved documentation across the board for the `query*()` functions. - Deprecated: `execute_many()` and `fetch_many()` on interfaces that use prepared statements. - Multiple SQL statements in one query string were only supported by SQLite because its prepared statement interface is the *only* way to execute SQL. All other database flavors forbid multiple statements in one prepared statement string as an extra defense against SQL injection. - The new `raw_sql` API retains this functionality because it explicitly does *not* use prepared statements. Raw or text-mode query interfaces generally allow multiple statements in one query string, and this is supported by all current databases. Due to their nature, however, one cannot use bind parameters with them. - If this change affects you, an issue is open for discussion: [https://github.com/launchbadge/sqlx/issues/3108](https://github.com/launchbadge/sqlx/issues/3108) - \[[#​3011]]: Added support to IpAddr with MySQL/MariaDB. \[\[[@​Icerath](https://github.com/Icerath)]] - \[[#​3013]]: Add default implementation for PgInterval \[\[[@​pawurb](https://github.com/pawurb)]] - \[[#​3018]]: Add default implementation for PgMoney \[\[[@​pawurb](https://github.com/pawurb)]] - \[[#​3026]]: Update docs to reflect support for MariaDB data types \[\[[@​iangilfillan](https://github.com/iangilfillan)]] - \[[#​3037]]: feat(mysql): allow to connect with mysql driver without default behavor \[\[[@​darkecho731](https://github.com/darkecho731)]] ##### Changed - \[[#​2900]]: Show latest url to docs for macro.migrate \[\[[@​Vrajs16](https://github.com/Vrajs16)]] - \[[#​2914]]: Use `create_new` instead of `atomic-file-write` \[\[[@​mattfbacon](https://github.com/mattfbacon)]] - \[[#​2926]]: docs: update example for `PgConnectOptions` \[\[[@​Fyko](https://github.com/Fyko)]] - \[[#​2989]]: sqlx-core: Remove dotenvy dependency \[\[[@​joshtriplett](https://github.com/joshtriplett)]] - \[[#​2996]]: chore: Update ahash to 0.8.7 \[\[[@​takenoko-gohan](https://github.com/takenoko-gohan)]] - \[[#​3006]]: chore(deps): Replace unmaintained tempdir crate with tempfile \[\[[@​iamjpotts](https://github.com/iamjpotts)]] - \[[#​3008]]: chore: Ignore .sqlx folder created by running ci steps locally \[\[[@​iamjpotts](https://github.com/iamjpotts)]] - \[[#​3009]]: chore(dev-deps): Upgrade env_logger from 0.9 to 0.11 \[\[[@​iamjpotts](https://github.com/iamjpotts)]] - \[[#​3010]]: chore(deps): Upgrade criterion to 0.5.1 \[\[[@​iamjpotts](https://github.com/iamjpotts)]] - \[[#​3050]]: Optimize SASL auth in sqlx-postgres \[\[[@​mirek26](https://github.com/mirek26)]] - \[[#​3055]]: Set TCP_NODELAY option on TCP sockets \[\[[@​mirek26](https://github.com/mirek26)]] - \[[#​3065]]: Improve max_lifetime handling \[\[[@​mirek26](https://github.com/mirek26)]] - \[[#​3072]]: Change the name of "inner" function generated by `#[sqlx::test]` \[\[[@​ciffelia](https://github.com/ciffelia)]] - \[[#​3083]]: Remove sha1 because it's not being used in postgres \[\[[@​rafaelGuerreiro](https://github.com/rafaelGuerreiro)]] ##### Fixed - \[[#​2898]]: Fixed docs \[\[[@​Vrajs16](https://github.com/Vrajs16)]] - \[[#​2905]]: fix(mysql): Close prepared statement if persistence is disabled \[\[[@​larsschumacher](https://github.com/larsschumacher)]] - \[[#​2913]]: Fix handling of deferred constraints \[\[[@​Thomasdezeeuw](https://github.com/Thomasdezeeuw)]] - \[[#​2919]]: fix duplicate "\`" in FromRow "default" attribute doc comment \[\[[@​shengsheng](https://github.com/shengsheng)]] - \[[#​2932]]: fix(postgres): avoid unnecessary flush in PgCopyIn::read_from \[\[[@​tsing](https://github.com/tsing)]] - \[[#​2955]]: Minor fixes \[\[[@​Dawsoncodes](https://github.com/Dawsoncodes)]] - \[[#​2963]]: Fixed ReadMe badge styling \[\[[@​tadghh](https://github.com/tadghh)]] - \[[#​2976]]: fix: AnyRow not support PgType::Varchar \[\[[@​holicc](https://github.com/holicc)]] - \[[#​3053]]: fix: do not panic when binding a large BigDecimal \[\[[@​Ekleog](https://github.com/Ekleog)]] - \[[#​3056]]: fix: spans in sqlite tracing ([#​2876](https://github.com/launchbadge/sqlx/issues/2876)) \[\[[@​zoomiti](https://github.com/zoomiti)]] - \[[#​3089]]: fix(migrate): improve error message when parsing version from filename \[\[[@​abonander](https://github.com/abonander)]] - \[[#​3098]]: Migrations fixes \[\[[@​abonander](https://github.com/abonander)]] - Unhides `sqlx::migrate::Migrator`. - Improves I/O error message when failing to read a file in `migrate!()`. [#​2891]: https://github.com/launchbadge/sqlx/pull/2891 [#​2898]: https://github.com/launchbadge/sqlx/pull/2898 [#​2900]: https://github.com/launchbadge/sqlx/pull/2900 [#​2902]: https://github.com/launchbadge/sqlx/pull/2902 [#​2905]: https://github.com/launchbadge/sqlx/pull/2905 [#​2913]: https://github.com/launchbadge/sqlx/pull/2913 [#​2914]: https://github.com/launchbadge/sqlx/pull/2914 [#​2919]: https://github.com/launchbadge/sqlx/pull/2919 [#​2926]: https://github.com/launchbadge/sqlx/pull/2926 [#​2927]: https://github.com/launchbadge/sqlx/pull/2927 [#​2932]: https://github.com/launchbadge/sqlx/pull/2932 [#​2955]: https://github.com/launchbadge/sqlx/pull/2955 [#​2963]: https://github.com/launchbadge/sqlx/pull/2963 [#​2976]: https://github.com/launchbadge/sqlx/pull/2976 [#​2989]: https://github.com/launchbadge/sqlx/pull/2989 [#​2996]: https://github.com/launchbadge/sqlx/pull/2996 [#​2997]: https://github.com/launchbadge/sqlx/pull/2997 [#​3001]: https://github.com/launchbadge/sqlx/pull/3001 [#​3004]: https://github.com/launchbadge/sqlx/pull/3004 [#​3006]: https://github.com/launchbadge/sqlx/pull/3006 [#​3007]: https://github.com/launchbadge/sqlx/pull/3007 [#​3008]: https://github.com/launchbadge/sqlx/pull/3008 [#​3009]: https://github.com/launchbadge/sqlx/pull/3009 [#​3010]: https://github.com/launchbadge/sqlx/pull/3010 [#​3011]: https://github.com/launchbadge/sqlx/pull/3011 [#​3013]: https://github.com/launchbadge/sqlx/pull/3013 [#​3018]: https://github.com/launchbadge/sqlx/pull/3018 [#​3026]: https://github.com/launchbadge/sqlx/pull/3026 [#​3037]: https://github.com/launchbadge/sqlx/pull/3037 [#​3050]: https://github.com/launchbadge/sqlx/pull/3050 [#​3053]: https://github.com/launchbadge/sqlx/pull/3053 [#​3055]: https://github.com/launchbadge/sqlx/pull/3055 [#​3056]: https://github.com/launchbadge/sqlx/pull/3056 [#​3065]: https://github.com/launchbadge/sqlx/pull/3065 [#​3072]: https://github.com/launchbadge/sqlx/pull/3072 [#​3083]: https://github.com/launchbadge/sqlx/pull/3083 [#​3089]: https://github.com/launchbadge/sqlx/pull/3089 [#​3098]: https://github.com/launchbadge/sqlx/pull/3098 ### [`v0.7.3`](https://github.com/launchbadge/sqlx/blob/HEAD/CHANGELOG.md#073---2023-11-22) 38 pull requests were merged this release cycle. ##### Added - \[[#​2478]]: feat(citext): support postgres citext \[\[[@​hgranthorner](https://github.com/hgranthorner)]] - \[[#​2545]]: Add `fixtures_path` in sqlx::test args \[\[[@​ripa1995](https://github.com/ripa1995)]] - \[[#​2665]]: feat(mysql): support packet splitting \[\[[@​tk2217](https://github.com/tk2217)]] - \[[#​2752]]: Enhancement [#​2747](https://github.com/launchbadge/sqlx/issues/2747) Provide `fn PgConnectOptions::get_host(&self)` \[\[[@​boris-lok](https://github.com/boris-lok)]] - \[[#​2769]]: Customize the macro error message based on the metadata \[\[[@​Nemo157](https://github.com/Nemo157)]] - \[[#​2793]]: derived Hash trait for PgInterval \[\[[@​yasamoka](https://github.com/yasamoka)]] - \[[#​2801]]: derive FromRow: sqlx(default) for all fields \[\[[@​grgi](https://github.com/grgi)]] - \[[#​2827]]: Add impl `FromRow` for the unit type \[\[[@​nanoqsh](https://github.com/nanoqsh)]] - \[[#​2871]]: Add `MySqlConnectOptions::get_database()` \[\[[@​shiftrightonce](https://github.com/shiftrightonce)]] - \[[#​2873]]: Sqlx Cli: Added force flag to drop database for postgres \[\[[@​Vrajs16](https://github.com/Vrajs16)]] - \[[#​2894]]: feat: `Text` adapter \[\[[@​abonander](https://github.com/abonander)]] ##### Changed - \[[#​2701]]: Remove documentation on offline feature \[\[[@​Baptistemontan](https://github.com/Baptistemontan)]] - \[[#​2713]]: Add additional info regarding using Transaction and PoolConnection as… \[\[[@​satwanjyu](https://github.com/satwanjyu)]] - \[[#​2770]]: Update README.md \[\[[@​snspinn](https://github.com/snspinn)]] - \[[#​2797]]: doc(mysql): document behavior regarding `BOOLEAN` and the query macros \[\[[@​abonander](https://github.com/abonander)]] - \[[#​2803]]: Don't use separate temp dir for query jsons (2) \[\[[@​mattfbacon](https://github.com/mattfbacon)]] - \[[#​2819]]: postgres begin cancel safe \[\[[@​conradludgate](https://github.com/conradludgate)]] - \[[#​2832]]: Update extra_float_digits default to 2 instead of 3 \[\[[@​brianheineman](https://github.com/brianheineman)]] - \[[#​2865]]: Update Faq - Bulk upsert with optional fields \[\[[@​Vrajs16](https://github.com/Vrajs16)]] - \[[#​2880]]: feat: use specific message for slow query logs \[\[[@​abonander](https://github.com/abonander)]] - \[[#​2882]]: Do not require db url for prepare \[\[[@​tamasfe](https://github.com/tamasfe)]] - \[[#​2890]]: doc(sqlite): cover lack of `NUMERIC` support \[\[[@​abonander](https://github.com/abonander)]] - \[No PR]: Upgraded `libsqlite3-sys` to 0.27.0 - Note: linkage to `libsqlite3-sys` is considered semver-exempt; see the release notes for 0.7.0 below for details. ##### Fixed - \[[#​2640]]: fix: sqlx::macro db cleanup race condition by adding a margin to current timestamp \[\[[@​fhsgoncalves](https://github.com/fhsgoncalves)]] - \[[#​2655]]: \[fix] Urlencode when passing filenames to sqlite3 \[\[[@​uttarayan21](https://github.com/uttarayan21)]] - \[[#​2684]]: Make PgListener recover from UnexpectedEof \[\[[@​hamiltop](https://github.com/hamiltop)]] - \[[#​2688]]: fix: Make rust_decimal and bigdecimal decoding more lenient \[\[[@​cameronbraid](https://github.com/cameronbraid)]] - \[[#​2754]]: Is tests/x.py maintained? And I tried fix it. \[\[[@​qwerty2501](https://github.com/qwerty2501)]] - \[[#​2784]]: fix: decode postgres time without subsecond \[\[[@​granddaifuku](https://github.com/granddaifuku)]] - \[[#​2806]]: Depend on version of async-std with non-private spawn-blocking \[\[[@​A248](https://github.com/A248)]] - \[[#​2820]]: fix: correct decoding of `rust_decimal::Decimal` for high-precision values \[\[[@​abonander](https://github.com/abonander)]] - \[[#​2822]]: issue [#​2821](https://github.com/launchbadge/sqlx/issues/2821) Update error handling logic when opening a TCP connection \[\[[@​anupj](https://github.com/anupj)]] - \[[#​2826]]: chore: bump some sqlx-core dependencies \[\[[@​djc](https://github.com/djc)]] - \[[#​2838]]: Fixes rust_decimal scale for Postgres \[\[[@​jkleinknox](https://github.com/jkleinknox)]] - \[[#​2847]]: Fix comment in `sqlx migrate add` help text \[\[[@​cryeprecision](https://github.com/cryeprecision)]] - \[[#​2850]]: fix(core): avoid unncessary wakeups in `try_stream!()` \[\[[@​abonander](https://github.com/abonander)]] - \[[#​2856]]: Prevent warnings running `cargo build` \[\[[@​nyurik](https://github.com/nyurik)]] - \[[#​2864]]: fix(sqlite): use `AtomicUsize` for thread IDs \[\[[@​abonander](https://github.com/abonander)]] - \[[#​2892]]: Fixed force dropping bug \[\[[@​Vrajs16](https://github.com/Vrajs16)]] [#​2478]: https://github.com/launchbadge/sqlx/pull/2478 [#​2545]: https://github.com/launchbadge/sqlx/pull/2545 [#​2640]: https://github.com/launchbadge/sqlx/pull/2640 [#​2655]: https://github.com/launchbadge/sqlx/pull/2655 [#​2665]: https://github.com/launchbadge/sqlx/pull/2665 [#​2684]: https://github.com/launchbadge/sqlx/pull/2684 [#​2688]: https://github.com/launchbadge/sqlx/pull/2688 [#​2701]: https://github.com/launchbadge/sqlx/pull/2701 [#​2713]: https://github.com/launchbadge/sqlx/pull/2713 [#​2752]: https://github.com/launchbadge/sqlx/pull/2752 [#​2754]: https://github.com/launchbadge/sqlx/pull/2754 [#​2769]: https://github.com/launchbadge/sqlx/pull/2769 [#​2770]: https://github.com/launchbadge/sqlx/pull/2770 [#​2782]: https://github.com/launchbadge/sqlx/pull/2782 [#​2784]: https://github.com/launchbadge/sqlx/pull/2784 [#​2793]: https://github.com/launchbadge/sqlx/pull/2793 [#​2797]: https://github.com/launchbadge/sqlx/pull/2797 [#​2801]: https://github.com/launchbadge/sqlx/pull/2801 [#​2803]: https://github.com/launchbadge/sqlx/pull/2803 [#​2806]: https://github.com/launchbadge/sqlx/pull/2806 [#​2819]: https://github.com/launchbadge/sqlx/pull/2819 [#​2820]: https://github.com/launchbadge/sqlx/pull/2820 [#​2822]: https://github.com/launchbadge/sqlx/pull/2822 [#​2826]: https://github.com/launchbadge/sqlx/pull/2826 [#​2827]: https://github.com/launchbadge/sqlx/pull/2827 [#​2832]: https://github.com/launchbadge/sqlx/pull/2832 [#​2838]: https://github.com/launchbadge/sqlx/pull/2838 [#​2847]: https://github.com/launchbadge/sqlx/pull/2847 [#​2850]: https://github.com/launchbadge/sqlx/pull/2850 [#​2856]: https://github.com/launchbadge/sqlx/pull/2856 [#​2864]: https://github.com/launchbadge/sqlx/pull/2864 [#​2865]: https://github.com/launchbadge/sqlx/pull/2865 [#​2871]: https://github.com/launchbadge/sqlx/pull/2871 [#​2873]: https://github.com/launchbadge/sqlx/pull/2873 [#​2880]: https://github.com/launchbadge/sqlx/pull/2880 [#​2882]: https://github.com/launchbadge/sqlx/pull/2882 [#​2890]: https://github.com/launchbadge/sqlx/pull/2890 [#​2892]: https://github.com/launchbadge/sqlx/pull/2892 [#​2894]: https://github.com/launchbadge/sqlx/pull/2894 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/SebastianGoeb/kindle-to-anki). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMzEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjMzMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- Loading branch information