Skip to content

Commit 56d5f08

Browse files
committed
Merge pull request #1 from asteinba/fix-encode-decode-derives
Rebase on main
2 parents 3beedf3 + 59e3c00 commit 56d5f08

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+3574
-1672
lines changed

.github/workflows/sqlx.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ jobs:
198198
env:
199199
DATABASE_URL: sqlite:tests/sqlite/sqlite.db
200200
SQLX_OFFLINE_DIR: .sqlx
201-
RUSTFLAGS: --cfg sqlite_ipaddr
201+
RUSTFLAGS: --cfg sqlite_ipaddr --cfg sqlite_test_sqlcipher
202202
LD_LIBRARY_PATH: /tmp/sqlite3-lib
203203

204204
# Remove test artifacts
@@ -470,6 +470,10 @@ jobs:
470470
mariadb: [verylatest, 10_11, 10_4]
471471
runtime: [async-std, tokio]
472472
tls: [native-tls, rustls, none]
473+
exclude:
474+
# FIXME: `rustls` cannot accept MariaDB's new self-signed certificates: https://github.com/launchbadge/sqlx/issues/3091
475+
- mariadb: verylatest
476+
tls: rustls
473477
needs: check
474478
steps:
475479
- uses: actions/checkout@v2

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ target/
1717
# Integration testing extension library for SQLite.
1818
ipaddr.dylib
1919
ipaddr.so
20+
21+
# Temporary files from running the tests locally like they would be run from CI
22+
.sqlx

CHANGELOG.md

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,113 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## 0.7.4 - 2024-03-11
9+
10+
38 pull requests were merged this release cycle.
11+
12+
This is officially the **last** release of the 0.7.x release cycle.
13+
14+
As of this release, development of 0.8.0 has begun on `main` and only high-priority bugfixes may be backported.
15+
16+
### Added
17+
18+
* [[#2891]]: feat: expose getters for connect options fields [[@saiintbrisson]]
19+
* [[#2902]]: feat: add `to_url_lossy` to connect options [[@lily-mosquitoes]]
20+
* [[#2927]]: Support `query!` for cargo-free systems [[@kshramt]]
21+
* [[#2997]]: doc(FAQ): add entry explaining prepared statements [[@abonander]]
22+
* [[#3001]]: Update README to clarify MariaDB support [[@iangilfillan]]
23+
* [[#3004]]: feat(logging): Add numeric elapsed time field elapsed_secs [[@iamjpotts]]
24+
* [[#3007]]: feat: add `raw_sql` API [[@abonander]]
25+
* This hopefully makes it easier to find how to execute statements which are not supported by the default
26+
prepared statement interfaces `query*()` and `query!()`.
27+
* Improved documentation across the board for the `query*()` functions.
28+
* Deprecated: `execute_many()` and `fetch_many()` on interfaces that use prepared statements.
29+
* Multiple SQL statements in one query string were only supported by SQLite because its prepared statement
30+
interface is the *only* way to execute SQL. All other database flavors forbid multiple statements in
31+
one prepared statement string as an extra defense against SQL injection.
32+
* The new `raw_sql` API retains this functionality because it explicitly does *not* use prepared statements.
33+
Raw or text-mode query interfaces generally allow multiple statements in one query string, and this is
34+
supported by all current databases. Due to their nature, however, one cannot use bind parameters with them.
35+
* If this change affects you, an issue is open for discussion: https://github.com/launchbadge/sqlx/issues/3108
36+
* [[#3011]]: Added support to IpAddr with MySQL/MariaDB. [[@Icerath]]
37+
* [[#3013]]: Add default implementation for PgInterval [[@pawurb]]
38+
* [[#3018]]: Add default implementation for PgMoney [[@pawurb]]
39+
* [[#3026]]: Update docs to reflect support for MariaDB data types [[@iangilfillan]]
40+
* [[#3037]]: feat(mysql): allow to connect with mysql driver without default behavor [[@darkecho731]]
41+
42+
### Changed
43+
44+
* [[#2900]]: Show latest url to docs for macro.migrate [[@Vrajs16]]
45+
* [[#2914]]: Use `create_new` instead of `atomic-file-write` [[@mattfbacon]]
46+
* [[#2926]]: docs: update example for `PgConnectOptions` [[@Fyko]]
47+
* [[#2989]]: sqlx-core: Remove dotenvy dependency [[@joshtriplett]]
48+
* [[#2996]]: chore: Update ahash to 0.8.7 [[@takenoko-gohan]]
49+
* [[#3006]]: chore(deps): Replace unmaintained tempdir crate with tempfile [[@iamjpotts]]
50+
* [[#3008]]: chore: Ignore .sqlx folder created by running ci steps locally [[@iamjpotts]]
51+
* [[#3009]]: chore(dev-deps): Upgrade env_logger from 0.9 to 0.11 [[@iamjpotts]]
52+
* [[#3010]]: chore(deps): Upgrade criterion to 0.5.1 [[@iamjpotts]]
53+
* [[#3050]]: Optimize SASL auth in sqlx-postgres [[@mirek26]]
54+
* [[#3055]]: Set TCP_NODELAY option on TCP sockets [[@mirek26]]
55+
* [[#3065]]: Improve max_lifetime handling [[@mirek26]]
56+
* [[#3072]]: Change the name of "inner" function generated by `#[sqlx::test]` [[@ciffelia]]
57+
* [[#3083]]: Remove sha1 because it's not being used in postgres [[@rafaelGuerreiro]]
58+
59+
### Fixed
60+
61+
* [[#2898]]: Fixed docs [[@Vrajs16]]
62+
* [[#2905]]: fix(mysql): Close prepared statement if persistence is disabled [[@larsschumacher]]
63+
* [[#2913]]: Fix handling of deferred constraints [[@Thomasdezeeuw]]
64+
* [[#2919]]: fix duplicate "`" in FromRow "default" attribute doc comment [[@shengsheng]]
65+
* [[#2932]]: fix(postgres): avoid unnecessary flush in PgCopyIn::read_from [[@tsing]]
66+
* [[#2955]]: Minor fixes [[@Dawsoncodes]]
67+
* [[#2963]]: Fixed ReadMe badge styling [[@tadghh]]
68+
* [[#2976]]: fix: AnyRow not support PgType::Varchar [[@holicc]]
69+
* [[#3053]]: fix: do not panic when binding a large BigDecimal [[@Ekleog]]
70+
* [[#3056]]: fix: spans in sqlite tracing (#2876) [[@zoomiti]]
71+
* [[#3089]]: fix(migrate): improve error message when parsing version from filename [[@abonander]]
72+
* [[#3098]]: Migrations fixes [[@abonander]]
73+
* Unhides `sqlx::migrate::Migrator`.
74+
* Improves I/O error message when failing to read a file in `migrate!()`.
75+
76+
[#2891]: https://github.com/launchbadge/sqlx/pull/2891
77+
[#2898]: https://github.com/launchbadge/sqlx/pull/2898
78+
[#2900]: https://github.com/launchbadge/sqlx/pull/2900
79+
[#2902]: https://github.com/launchbadge/sqlx/pull/2902
80+
[#2905]: https://github.com/launchbadge/sqlx/pull/2905
81+
[#2913]: https://github.com/launchbadge/sqlx/pull/2913
82+
[#2914]: https://github.com/launchbadge/sqlx/pull/2914
83+
[#2919]: https://github.com/launchbadge/sqlx/pull/2919
84+
[#2926]: https://github.com/launchbadge/sqlx/pull/2926
85+
[#2927]: https://github.com/launchbadge/sqlx/pull/2927
86+
[#2932]: https://github.com/launchbadge/sqlx/pull/2932
87+
[#2955]: https://github.com/launchbadge/sqlx/pull/2955
88+
[#2963]: https://github.com/launchbadge/sqlx/pull/2963
89+
[#2976]: https://github.com/launchbadge/sqlx/pull/2976
90+
[#2989]: https://github.com/launchbadge/sqlx/pull/2989
91+
[#2996]: https://github.com/launchbadge/sqlx/pull/2996
92+
[#2997]: https://github.com/launchbadge/sqlx/pull/2997
93+
[#3001]: https://github.com/launchbadge/sqlx/pull/3001
94+
[#3004]: https://github.com/launchbadge/sqlx/pull/3004
95+
[#3006]: https://github.com/launchbadge/sqlx/pull/3006
96+
[#3007]: https://github.com/launchbadge/sqlx/pull/3007
97+
[#3008]: https://github.com/launchbadge/sqlx/pull/3008
98+
[#3009]: https://github.com/launchbadge/sqlx/pull/3009
99+
[#3010]: https://github.com/launchbadge/sqlx/pull/3010
100+
[#3011]: https://github.com/launchbadge/sqlx/pull/3011
101+
[#3013]: https://github.com/launchbadge/sqlx/pull/3013
102+
[#3018]: https://github.com/launchbadge/sqlx/pull/3018
103+
[#3026]: https://github.com/launchbadge/sqlx/pull/3026
104+
[#3037]: https://github.com/launchbadge/sqlx/pull/3037
105+
[#3050]: https://github.com/launchbadge/sqlx/pull/3050
106+
[#3053]: https://github.com/launchbadge/sqlx/pull/3053
107+
[#3055]: https://github.com/launchbadge/sqlx/pull/3055
108+
[#3056]: https://github.com/launchbadge/sqlx/pull/3056
109+
[#3065]: https://github.com/launchbadge/sqlx/pull/3065
110+
[#3072]: https://github.com/launchbadge/sqlx/pull/3072
111+
[#3083]: https://github.com/launchbadge/sqlx/pull/3083
112+
[#3089]: https://github.com/launchbadge/sqlx/pull/3089
113+
[#3098]: https://github.com/launchbadge/sqlx/pull/3098
114+
8115
## 0.7.3 - 2023-11-22
9116

10117
38 pull requests were merged this release cycle.
@@ -2135,3 +2242,22 @@ Fix docs.rs build by enabling a runtime feature in the docs.rs metadata in `Carg
21352242
[@Vrajs16]: https://github.com/Vrajs16
21362243
[@shiftrightonce]: https://github.com/shiftrightonce
21372244
[@tamasfe]: https://github.com/tamasfe
2245+
[@lily-mosquitoes]: https://github.com/lily-mosquitoes
2246+
[@larsschumacher]: https://github.com/larsschumacher
2247+
[@shengsheng]: https://github.com/shengsheng
2248+
[@Fyko]: https://github.com/Fyko
2249+
[@kshramt]: https://github.com/kshramt
2250+
[@Dawsoncodes]: https://github.com/Dawsoncodes
2251+
[@tadghh]: https://github.com/tadghh
2252+
[@holicc]: https://github.com/holicc
2253+
[@takenoko-gohan]: https://github.com/takenoko-gohan
2254+
[@iangilfillan]: https://github.com/iangilfillan
2255+
[@iamjpotts]: https://github.com/iamjpotts
2256+
[@Icerath]: https://github.com/Icerath
2257+
[@pawurb]: https://github.com/pawurb
2258+
[@darkecho731]: https://github.com/darkecho731
2259+
[@mirek26]: https://github.com/mirek26
2260+
[@Ekleog]: https://github.com/Ekleog
2261+
[@zoomiti]: https://github.com/zoomiti
2262+
[@ciffelia]: https://github.com/ciffelia
2263+
[@rafaelGuerreiro]: https://github.com/rafaelGuerreiro

0 commit comments

Comments
 (0)