@@ -5,18 +5,80 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
6
6
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
7
7
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
+
8
70
## 0.5 . 1 - 2021 - 02 - 04
9
71
10
- - Update sqlx-rt to 0.3.
72
+ - Update sqlx - rt to 0.3 .
11
73
12
74
## 0.5 . 0 - 2021 - 02 - 04
13
75
14
76
### Changes
15
77
16
78
- [[#983 ]] [[#1022 ]] Upgrade async runtime dependencies [[@ seryl ], [@ ant32 ], [@ jplatte ], [@ robjtede ]]
17
79
18
- - tokio 1.0
19
- - actix-rt 2.0
80
+ - tokio 1.0
81
+ - actix - rt 2.0
20
82
21
83
- [[#854 ]] Allow chaining `map ` and `try_map ` [[@ jplatte ]]
22
84
@@ -53,7 +115,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
53
115
- [[#918 ]] Recover from dropping `wait_for_conn ` inside Pool . [[@ antialize ]]
54
116
55
117
[#821 ]: https : // github.com/launchbadge/sqlx/issues/821
56
-
57
118
[#918 ]: https : // github.com/launchbadge/sqlx/pull/918
58
119
[#919 ]: https : // github.com/launchbadge/sqlx/pull/919
59
120
[#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
123
184
[#850 ]: https : // github.com/launchbadge/sqlx/pull/850
124
185
[#845 ]: https : // github.com/launchbadge/sqlx/pull/845
125
186
[#839 ]: https : // github.com/launchbadge/sqlx/pull/839
126
-
127
187
[#747 ]: https : // github.com/launchbadge/sqlx/issues/747
128
188
129
189
## 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
803
863
[@ mcronce]: https: // github.com/mcronce
804
864
[@ hamza1311]: https: // github.com/hamza1311
805
865
[@ augustocdias]: https: // github.com/augustocdias
806
- [@ Pleto ]: https: // github.com/Pleto
866
+ [@ pleto ]: https: // github.com/Pleto
807
867
[@ chertov]: https: // github.com/chertov
808
868
[@ framp]: https: // github.com/framp
809
869
[@ markazmierczak]: https: // github.com/markazmierczak
810
870
[@ msrd0]: https: // github.com/msrd0
811
871
[@ joshtriplett]: https: // github.com/joshtriplett
812
- [@ NyxCode ]: https: // github.com/NyxCode
872
+ [@ nyxcode ]: https: // github.com/NyxCode
813
873
[@ nitsky]: https: // github.com/nitsky
814
874
[@ esemeniuc]: https: // github.com/esemeniuc
815
875
[@ 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
824
884
[@ fl9]: https: // github.com/fl9
825
885
[@ antialize]: https: // github.com/antialize
826
886
[@ 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