@@ -5,18 +5,80 @@ All notable changes to this project will be documented in this file.
55The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
66and 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 . 1 – 2020 - 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
0 commit comments