Skip to content

Commit cbccd68

Browse files
committed
chore: prepare v0.3.5
1 parent 7b1cc7f commit cbccd68

File tree

5 files changed

+76
-30
lines changed

5 files changed

+76
-30
lines changed

CHANGELOG.md

Lines changed: 67 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,65 @@ 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.3.5 - 2020-05-06
9+
10+
### Fixed
11+
12+
- [[#259]] Handle percent-encoded paths for SQLite [[@g-s-k]]
13+
14+
- [[#281]] Deallocate SQLite statements before closing the SQLite connection [[@hasali19]]
15+
16+
- [[#284]] Fix handling of `0` for `BigDecimal` in PostgreSQL and MySQL [[@abonander]]
17+
18+
### Added
19+
20+
- [[#256]] Add `query_unchecked!` and `query_file_unchecked!` with similar semantics to `query_as_unchecked!` [[@meh]]
21+
22+
- [[#252]] [[#297]] Derive serveral traits for the `Json<T>` wrapper type [[@meh]]
23+
24+
- [[#261]] Add support for `#[sqlx(rename_all = "snake_case")]` to `#[derive(Type)]` [[@shssoichiro]]
25+
26+
- [[#253]] Add support for UNIX domain sockets to PostgreSQL [[@Nilix007]]
27+
28+
- [[#251]] Add support for textual JSON on MySQL [[@blackwolf12333]]
29+
30+
- [[#275]] [[#268]] Optionally log formatted SQL queries on execution [[@shssoichiro]]
31+
32+
- [[#267]] Support Cargo.toml relative `.env` files; allows for each crate in a workspace to use their own `.env` file and thus their own `DATABASE_URL` [[@xyzd]]
33+
34+
[#252]: https://github.com/launchbadge/sqlx/pull/252
35+
[#261]: https://github.com/launchbadge/sqlx/pull/261
36+
[#256]: https://github.com/launchbadge/sqlx/pull/256
37+
[#259]: https://github.com/launchbadge/sqlx/pull/259
38+
[#253]: https://github.com/launchbadge/sqlx/pull/253
39+
[#297]: https://github.com/launchbadge/sqlx/pull/297
40+
[#251]: https://github.com/launchbadge/sqlx/pull/251
41+
[#275]: https://github.com/launchbadge/sqlx/pull/275
42+
[#267]: https://github.com/launchbadge/sqlx/pull/267
43+
[#268]: https://github.com/launchbadge/sqlx/pull/268
44+
[#281]: https://github.com/launchbadge/sqlx/pull/281
45+
[#284]: https://github.com/launchbadge/sqlx/pull/284
46+
847
## 0.3.4 - 2020-04-10
948

1049
### Fixed
1150

1251
- [[#241]] Type name for custom enum is not always attached to TypeInfo in PostgreSQL
13-
52+
1453
- [[#237]] [[#238]] User-defined type name matching is now case-insensitive in PostgreSQL [[@qtbeee]]
15-
54+
1655
- [[#231]] Handle empty queries (and those with comments) in SQLite
17-
56+
1857
- [[#228]] Provide `MapRow` implementations for functions (enables `.map(|row| ...)` over `.try_map(|row| ...)`)
1958

2059
### Added
2160

2261
- [[#234]] Add support for `NUMERIC` in MySQL with the `bigdecimal` crate [[@xiaopengli89]]
23-
62+
2463
- [[#227]] Support `#[sqlx(rename = "new_name")]` on struct fields within a `FromRow` derive [[@sidred]]
2564

2665
[#228]: https://github.com/launchbadge/sqlx/issues/228
27-
[#231]: https://github.com/launchbadge/sqlx/issues/231
66+
[#231]: https://github.com/launchbadge/sqlx/issues/231
2867
[#237]: https://github.com/launchbadge/sqlx/issues/237
2968
[#241]: https://github.com/launchbadge/sqlx/issues/241
3069

@@ -41,7 +80,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4180
### Changed
4281

4382
- [[#216]] Mark `Cursor`, `Query`, `QueryAs`, `query::Map`, and `Transaction` as `#[must_use]` [[@Ace4896]]
44-
83+
4584
- [[#213]] Remove matches dependency and use matches macro from std [[@nrjais]]
4685

4786
[#216]: https://github.com/launchbadge/sqlx/pull/216
@@ -53,20 +92,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5392
### Fixed
5493

5594
- [[#212]] Removed sneaky `println!` in `MySqlCursor`
56-
95+
5796
[#212]: https://github.com/launchbadge/sqlx/issues/212
5897

5998
## 0.3.1 - 2020-03-30
6099

61100
### Fixed
62101

63102
- [[#203]] Allow an empty password for MySQL
64-
103+
65104
- [[#204]] Regression in error reporting for invalid SQL statements on PostgreSQL
66-
105+
67106
- [[#200]] Fixes the incorrect handling of raw (`r#...`) fields of a struct in the `FromRow` derive [[@sidred]]
68107

69-
[#200]: https://github.com/launchbadge/sqlx/pull/200
108+
[#200]: https://github.com/launchbadge/sqlx/pull/200
70109
[#203]: https://github.com/launchbadge/sqlx/issues/203
71110
[#204]: https://github.com/launchbadge/sqlx/issues/204
72111

@@ -93,13 +132,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
93132
.fetch_all(&mut conn).await?;
94133
```
95134

96-
To assist with the above, `sqlx::query_as()` now supports querying directly into tuples (up to 9 elements) or
135+
To assist with the above, `sqlx::query_as()` now supports querying directly into tuples (up to 9 elements) or
97136
struct types with a `#[derive(FromRow)]`.
98137

99138
```rust
100139
// This extension trait is needed until a rust bug is fixed
101140
use sqlx::postgres::PgQueryAs;
102-
141+
103142
let values: Vec<(i32, bool)> = sqlx::query_as("SELECT 1, false")
104143
.fetch_all(&mut conn).await?;
105144
```
@@ -109,13 +148,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
109148
- `Query::fetch` (returned from `query()`) now returns a new `Cursor` type. `Cursor` is a Stream-like type where the
110149
item type borrows into the stream (which itself borrows from connection). This means that using `query().fetch()` you can now
111150
stream directly from the database with **zero-copy** and **zero-allocation**.
112-
151+
113152
- Remove `PgTypeInfo::with_oid` and replace with `PgTypeInfo::with_name`
114153

115154
### Added
116155

117156
- Results from the database are now zero-copy and no allocation beyond a shared read buffer
118-
for the TCP stream ( in other words, almost no per-query allocation ). Bind arguments still
157+
for the TCP stream ( in other words, almost no per-query allocation ). Bind arguments still
119158
do allocate a buffer per query.
120159

121160
- [[#129]] Add support for [SQLite](https://sqlite.org/index.html). Generated code should be very close to normal use of the C API.
@@ -180,17 +219,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
180219
println!("payload = {}", message.payload);
181220
}
182221
```
183-
184-
- Add _unchecked_ variants of the query macros. These will still verify the SQL for syntactic and
222+
223+
- Add _unchecked_ variants of the query macros. These will still verify the SQL for syntactic and
185224
semantic correctness with the current database but they will not check the input or output types.
186-
225+
187226
This is intended as a temporary solution until `query_as!` is able to support user defined types.
188-
227+
189228
* `query_as_unchecked!`
190229
* `query_file_as_unchecked!`
191-
230+
192231
- Add support for many more types in Postgres
193-
232+
194233
- `JSON`, `JSONB` [[@oeb25]]
195234
- `INET`, `CIDR` [[@PoiScript]]
196235
- Arrays [[@oeb25]]
@@ -213,7 +252,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
213252

214253
```rust
215254
use sqlx::Executor;
216-
255+
217256
// Set the time zone parameter
218257
conn.execute("SET TIME ZONE LOCAL;").await
219258

@@ -420,3 +459,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
420459
[@nrjais]: https://github.com/nrjais
421460
[@qtbeee]: https://github.com/qtbeee
422461
[@xiaopengli89]: https://github.com/xiaopengli89
462+
[@meh]: https://github.com/meh
463+
[@shssoichiro]: https://github.com/shssoichiro
464+
[@Nilix007]: https://github.com/Nilix007
465+
[@g-s-k]: https://github.com/g-s-k
466+
[@blackwolf12333]: https://github.com/blackwolf12333
467+
[@xyzd]: https://github.com/xyzd
468+
[@hasali19]: https://github.com/hasali19

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ members = [
1414

1515
[package]
1616
name = "sqlx"
17-
version = "0.3.4"
17+
version = "0.3.5"
1818
license = "MIT OR Apache-2.0"
1919
readme = "README.md"
2020
repository = "https://github.com/launchbadge/sqlx"
@@ -62,8 +62,8 @@ json = [ "sqlx-core/json", "sqlx-macros/json" ]
6262
time = [ "sqlx-core/time", "sqlx-macros/time" ]
6363

6464
[dependencies]
65-
sqlx-core = { version = "0.3.4", path = "sqlx-core", default-features = false }
66-
sqlx-macros = { version = "0.3.4", path = "sqlx-macros", default-features = false, optional = true }
65+
sqlx-core = { version = "0.3.5", path = "sqlx-core", default-features = false }
66+
sqlx-macros = { version = "0.3.5", path = "sqlx-macros", default-features = false, optional = true }
6767

6868
[dev-dependencies]
6969
anyhow = "1.0.26"

sqlx-core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sqlx-core"
3-
version = "0.3.4"
3+
version = "0.3.5"
44
repository = "https://github.com/launchbadge/sqlx"
55
description = "Core of SQLx, the rust SQL toolkit. Not intended to be used directly."
66
license = "MIT OR Apache-2.0"

sqlx-macros/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sqlx-macros"
3-
version = "0.3.4"
3+
version = "0.3.5"
44
repository = "https://github.com/launchbadge/sqlx"
55
description = "Macros for SQLx, the rust SQL toolkit. Not intended to be used directly."
66
license = "MIT OR Apache-2.0"
@@ -41,7 +41,7 @@ dotenv = { version = "0.15.0", default-features = false }
4141
futures = { version = "0.3.4", default-features = false, features = [ "executor" ] }
4242
heck = "0.3"
4343
proc-macro2 = { version = "1.0.9", default-features = false }
44-
sqlx = { version = "0.3.4", default-features = false, path = "../sqlx-core", package = "sqlx-core" }
44+
sqlx = { version = "0.3.5", default-features = false, path = "../sqlx-core", package = "sqlx-core" }
4545
serde_json = { version = "1.0", features = [ "raw_value" ], optional = true }
4646
syn = { version = "1.0.16", default-features = false, features = [ "full" ] }
4747
quote = { version = "1.0.2", default-features = false }

0 commit comments

Comments
 (0)