Skip to content

Commit f7775f7

Browse files
committed
release: 0.5.2
1 parent 73d35e7 commit f7775f7

File tree

8 files changed

+363
-162
lines changed

8 files changed

+363
-162
lines changed

CHANGELOG.md

+73-7
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,80 @@ 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.5.2 - 2021-04-15
9+
10+
- [[#1149]] Tweak and optimize Pool internals [[@abonander]]
11+
12+
- [[#1132]] Remove `'static` bound on `Connection::transaction` [[@argv-minus-one]]
13+
14+
- [[#1128]] Fix `-y` flag for `sqlx db reset -y` [[@qqwa]]
15+
16+
- [[#1099]] [[#1097]] Truncate buffer when `BufStream` is dropped [[@Diggsey]]
17+
18+
[#1132]: https://github.com/launchbadge/sqlx/pull/1132
19+
[#1149]: https://github.com/launchbadge/sqlx/pull/1149
20+
[#1128]: https://github.com/launchbadge/sqlx/pull/1128
21+
[#1099]: https://github.com/launchbadge/sqlx/pull/1099
22+
[#1097]: https://github.com/launchbadge/sqlx/issues/1097
23+
24+
### PostgreSQL
25+
26+
- [[#1170]] Remove `Self: Type` bounds in `Encode` / `Decode` implementations for arrays [[@jplatte]]
27+
28+
Enables working around the lack of support for user-defined array types:
29+
30+
```rust
31+
#[derive(sqlx::Encode)]
32+
struct Foos<'a>(&'a [Foo]);
33+
34+
impl sqlx::Type<sqlx::Postgres> for Foos<'_> {
35+
fn type_info() -> PgTypeInfo {
36+
PgTypeInfo::with_name("_foo")
37+
}
38+
}
39+
40+
query_as!(
41+
Whatever,
42+
"<QUERY with $1 of type foo[]>",
43+
Foos(&foo_vec) as _,
44+
)
45+
```
46+
47+
- [[#1141]] Use `u16::MAX` instead of `i16::MAX` for a check against the largest number of parameters in a query [[@crajcan]]
48+
49+
- [[#1112]] Add support for `DOMAIN` types [[@demurgos]]
50+
51+
- [[#1100]] Explicitly `UNLISTEN` before returning connections to the pool in `PgListener` [[@Diggsey]]
52+
53+
[#1170]: https://github.com/launchbadge/sqlx/pull/1170
54+
[#1141]: https://github.com/launchbadge/sqlx/pull/1141
55+
[#1112]: https://github.com/launchbadge/sqlx/pull/1112
56+
[#1100]: https://github.com/launchbadge/sqlx/pull/1100
57+
58+
### SQLite
59+
60+
- [[#1161]] Catch `SQLITE_MISUSE` on connection close and panic [[@link2xt]]
61+
62+
- [[#1160]] Do not cast pointers to `i32` (cast to `usize`) [[@link2xt]]
63+
64+
- [[#1156]] Reset the statement when `fetch_many` stream is dropped [[@link2xt]]
65+
66+
[#1161]: https://github.com/launchbadge/sqlx/pull/1161
67+
[#1160]: https://github.com/launchbadge/sqlx/pull/1160
68+
[#1156]: https://github.com/launchbadge/sqlx/pull/1156
69+
870
## 0.5.1 - 2021-02-04
971

10-
- Update sqlx-rt to 0.3.
72+
- Update sqlx-rt to 0.3.
1173

1274
## 0.5.0 - 2021-02-04
1375

1476
### Changes
1577

1678
- [[#983]] [[#1022]] Upgrade async runtime dependencies [[@seryl], [@ant32], [@jplatte], [@robjtede]]
1779

18-
- tokio 1.0
19-
- actix-rt 2.0
80+
- tokio 1.0
81+
- actix-rt 2.0
2082

2183
- [[#854]] Allow chaining `map` and `try_map` [[@jplatte]]
2284

@@ -53,7 +115,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
53115
- [[#918]] Recover from dropping `wait_for_conn` inside Pool. [[@antialize]]
54116

55117
[#821]: https://github.com/launchbadge/sqlx/issues/821
56-
57118
[#918]: https://github.com/launchbadge/sqlx/pull/918
58119
[#919]: https://github.com/launchbadge/sqlx/pull/919
59120
[#983]: https://github.com/launchbadge/sqlx/pull/983
@@ -123,7 +184,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
123184
[#850]: https://github.com/launchbadge/sqlx/pull/850
124185
[#845]: https://github.com/launchbadge/sqlx/pull/845
125186
[#839]: https://github.com/launchbadge/sqlx/pull/839
126-
127187
[#747]: https://github.com/launchbadge/sqlx/issues/747
128188

129189
## 0.4.12020-11-13
@@ -803,13 +863,13 @@ Fix docs.rs build by enabling a runtime feature in the docs.rs metadata in `Carg
803863
[@mcronce]: https://github.com/mcronce
804864
[@hamza1311]: https://github.com/hamza1311
805865
[@augustocdias]: https://github.com/augustocdias
806-
[@Pleto]: https://github.com/Pleto
866+
[@pleto]: https://github.com/Pleto
807867
[@chertov]: https://github.com/chertov
808868
[@framp]: https://github.com/framp
809869
[@markazmierczak]: https://github.com/markazmierczak
810870
[@msrd0]: https://github.com/msrd0
811871
[@joshtriplett]: https://github.com/joshtriplett
812-
[@NyxCode]: https://github.com/NyxCode
872+
[@nyxcode]: https://github.com/NyxCode
813873
[@nitsky]: https://github.com/nitsky
814874
[@esemeniuc]: https://github.com/esemeniuc
815875
[@iamsiddhant05]: https://github.com/iamsiddhant05
@@ -824,3 +884,9 @@ Fix docs.rs build by enabling a runtime feature in the docs.rs metadata in `Carg
824884
[@fl9]: https://github.com/fl9
825885
[@antialize]: https://github.com/antialize
826886
[@dignifiedquire]: https://github.com/dignifiedquire
887+
[@argv-minus-one]: https://github.com/argv-minus-one
888+
[@qqwa]: https://github.com/qqwa
889+
[@diggsey]: https://github.com/Diggsey
890+
[@crajcan]: https://github.com/crajcan
891+
[@demurgos]: https://github.com/demurgos
892+
[@link2xt]: https://github.com/link2xt

Cargo.lock

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)