Skip to content

Commit b6cddcd

Browse files
authored
prepare 0.6.2 release (launchbadge#2092)
1 parent 8fca760 commit b6cddcd

File tree

9 files changed

+197
-18
lines changed

9 files changed

+197
-18
lines changed

CHANGELOG.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,72 @@ 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.6.2 - 2022-09-14
9+
10+
[25 pull requests][0.6.2-prs] were merged this release cycle.
11+
12+
### Added
13+
* [[#1081]]: Add `try_from` attribute for `FromRow` derive [[@zzhengzhuo]]
14+
* Exemplifies "out of sight, out of mind." It's surprisingly easy to forget about PRs when they get pushed onto
15+
the second page. We'll be sure to clean out the backlog for 0.7.0.
16+
* [[#2014]]: Support additional SQLCipher options in SQLite driver. [[@szymek156]]
17+
* [[#2052]]: Add issue templates [[@abonander]]
18+
* [[#2053]]: Add documentation for `IpAddr` support in Postgres [[@rakshith-ravi]]
19+
* [[#2062]]: Add extension support for SQLite [[@bradfier]]
20+
* [[#2063]]: customizable db locking during migration [[@fuzzbuck]]
21+
22+
### Changed
23+
* [[#2025]]: Bump sqlformat to 2.0 [[@NSMustache]]
24+
* [[#2056]]: chore: Switch to sha1 crate [[@stoically]]
25+
* [[#2071]]: Use cargo check consistently in `prepare` [[@cycraig]]
26+
27+
### Fixed
28+
* [[#1991]]: Ensure migration progress is not lost for Postgres, MySQL and SQLite. [[@crepererum]]
29+
* [[#2023]]: Fix expansion of `#[sqlx(flatten)]` for `FromRow` derive [[@RustyYato]]
30+
* [[#2028]]: Use fully qualified path when forwarding to `#[test]` from `#[sqlx::test]` [[@alexander-jackson]]
31+
* [[#2040]]: Fix typo in `FromRow` docs [[@zlidner]]
32+
* [[#2046]]: added flag for PIPES_AS_CONCAT connection setting for MySQL to fix #2034 [[@marcustut]]
33+
* [[#2055]]: Use unlock notify also on `sqlite3_exec` [[@madadam]]
34+
* [[#2057]]: Make begin,commit,rollback cancel-safe in sqlite [[@madadam]]
35+
* [[#2058]]: fix typo in documentation [[@lovasoa]]
36+
* [[#2067]]: fix(docs): close code block in query_builder.rs [[@abonander]]
37+
* [[#2069]]: Fix `prepare` race condition in workspaces [[@cycraig]]
38+
* [[#2072]]: SqliteConnectOptions typo [[@fasterthanlime]]
39+
* [[#2074]]: fix: mssql uses unsigned for tinyint instead of signed [[@he4d]]
40+
* [[#2081]]: close unnamed portal after each executed extended query [[@DXist]]
41+
* [[#2086]]: PgHasArrayType for transparent types fix. [[@Wopple]]
42+
* NOTE: this is a breaking change and has been postponed to 0.7.0.
43+
* [[#2089]]: fix: Remove default chrono dep on time for sqlx-cli [[@TravisWhitehead]]
44+
* [[#2091]]: Sqlite explain plan log efficiency [[@tyrelr]]
45+
46+
[0.6.2-prs]: https://github.com/launchbadge/sqlx/pulls?q=is%3Apr+is%3Aclosed+merged%3A2022-08-04..2022-09-14+
47+
48+
[#1081]: https://github.com/launchbadge/sqlx/pull/1081
49+
[#1991]: https://github.com/launchbadge/sqlx/pull/1991
50+
[#2014]: https://github.com/launchbadge/sqlx/pull/2014
51+
[#2023]: https://github.com/launchbadge/sqlx/pull/2023
52+
[#2025]: https://github.com/launchbadge/sqlx/pull/2025
53+
[#2028]: https://github.com/launchbadge/sqlx/pull/2028
54+
[#2040]: https://github.com/launchbadge/sqlx/pull/2040
55+
[#2046]: https://github.com/launchbadge/sqlx/pull/2046
56+
[#2052]: https://github.com/launchbadge/sqlx/pull/2052
57+
[#2053]: https://github.com/launchbadge/sqlx/pull/2053
58+
[#2055]: https://github.com/launchbadge/sqlx/pull/2055
59+
[#2056]: https://github.com/launchbadge/sqlx/pull/2056
60+
[#2057]: https://github.com/launchbadge/sqlx/pull/2057
61+
[#2058]: https://github.com/launchbadge/sqlx/pull/2058
62+
[#2062]: https://github.com/launchbadge/sqlx/pull/2062
63+
[#2063]: https://github.com/launchbadge/sqlx/pull/2063
64+
[#2067]: https://github.com/launchbadge/sqlx/pull/2067
65+
[#2069]: https://github.com/launchbadge/sqlx/pull/2069
66+
[#2071]: https://github.com/launchbadge/sqlx/pull/2071
67+
[#2072]: https://github.com/launchbadge/sqlx/pull/2072
68+
[#2074]: https://github.com/launchbadge/sqlx/pull/2074
69+
[#2081]: https://github.com/launchbadge/sqlx/pull/2081
70+
[#2086]: https://github.com/launchbadge/sqlx/pull/2086
71+
[#2089]: https://github.com/launchbadge/sqlx/pull/2089
72+
[#2091]: https://github.com/launchbadge/sqlx/pull/2091
73+
874
## 0.6.1 - 2022-08-02
975

1076
[33 pull requests][0.6.1-prs] were merged this release cycle.
@@ -1510,3 +1576,21 @@ Fix docs.rs build by enabling a runtime feature in the docs.rs metadata in `Carg
15101576
[@crepererum]: https://github.com/crepererum
15111577
[@UramnOIL]: https://github.com/UramnOIL
15121578
[@liningpan]: https://github.com/liningpan
1579+
[@zzhengzhuo]: https://github.com/zzhengzhuo
1580+
[@crepererum]: https://github.com/crepererum
1581+
[@szymek156]: https://github.com/szymek156
1582+
[@NSMustache]: https://github.com/NSMustache
1583+
[@RustyYato]: https://github.com/RustyYato
1584+
[@alexander-jackson]: https://github.com/alexander-jackson
1585+
[@zlidner]: https://github.com/zlidner
1586+
[@zlindner]: https://github.com/zlindner
1587+
[@marcustut]: https://github.com/marcustut
1588+
[@rakshith-ravi]: https://github.com/rakshith-ravi
1589+
[@bradfier]: https://github.com/bradfier
1590+
[@fuzzbuck]: https://github.com/fuzzbuck
1591+
[@cycraig]: https://github.com/cycraig
1592+
[@fasterthanlime]: https://github.com/fasterthanlime
1593+
[@he4d]: https://github.com/he4d
1594+
[@DXist]: https://github.com/DXist
1595+
[@Wopple]: https://github.com/Wopple
1596+
[@TravisWhitehead]: https://github.com/TravisWhitehead

Cargo.lock

Lines changed: 5 additions & 5 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
@@ -20,7 +20,7 @@ members = [
2020

2121
[package]
2222
name = "sqlx"
23-
version = "0.6.1"
23+
version = "0.6.2"
2424
license = "MIT OR Apache-2.0"
2525
readme = "README.md"
2626
repository = "https://github.com/launchbadge/sqlx"
@@ -125,8 +125,8 @@ bstr = ["sqlx-core/bstr"]
125125
git2 = ["sqlx-core/git2"]
126126

127127
[dependencies]
128-
sqlx-core = { version = "0.6.1", path = "sqlx-core", default-features = false }
129-
sqlx-macros = { version = "0.6.1", path = "sqlx-macros", default-features = false, optional = true }
128+
sqlx-core = { version = "0.6.2", path = "sqlx-core", default-features = false }
129+
sqlx-macros = { version = "0.6.2", path = "sqlx-macros", default-features = false, optional = true }
130130

131131
[dev-dependencies]
132132
anyhow = "1.0.52"

examples/postgres/axum-social-with-tests/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ edition = "2021"
88
[dependencies]
99
# Primary crates
1010
axum = { version = "0.5.13", features = ["macros"] }
11-
sqlx = { version = "0.6.1", path = "../../../", features = ["runtime-tokio-rustls", "postgres", "time", "uuid"] }
11+
sqlx = { version = "0.6.2", path = "../../../", features = ["runtime-tokio-rustls", "postgres", "time", "uuid"] }
1212
tokio = { version = "1.20.1", features = ["rt-multi-thread", "macros"] }
1313

1414
# Important secondary crates

gen-changelog.sh

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
# Requires Github CLI and `jq`
2+
# Usage: `./gen-changelog.sh YYYY-mm-dd`
3+
# Generates changelog entries for all PRs merged on or after the given date.
4+
set -e
5+
6+
PULLS='[]'
7+
CURSOR='null'
8+
9+
VERSION=$1
10+
11+
MIN_MERGED_AT=$(date --date="$1" +%s)
12+
13+
while true
14+
do
15+
# Use the GraphQL API to paginate merged pull requests.
16+
# The REST API doesn't allow filtering only merged pull requests.
17+
# We scan all merged pull requests from the beginning because it's not unheard of to have a very old PR finally get
18+
# merged; e.g. #1081, merged a year and a half after it was opened.
19+
if [ "$CURSOR" != "null" ];
20+
then
21+
PAGE=$(gh api graphql -f after="$CURSOR" -f query='query($after: String) {
22+
repository(owner: "launchbadge", name: "sqlx") {
23+
pullRequests(first:100,orderBy: {field:CREATED_AT, direction:ASC},states:MERGED, after: $after) {
24+
nodes {
25+
number
26+
author { login }
27+
title
28+
url
29+
mergedAt
30+
}
31+
pageInfo {
32+
hasNextPage
33+
endCursor
34+
}
35+
}
36+
}
37+
}');
38+
else
39+
PAGE=$(gh api graphql -f query='query {
40+
repository(owner: "launchbadge", name: "sqlx") {
41+
pullRequests(first:100,orderBy: {field:CREATED_AT, direction:ASC},states:MERGED) {
42+
nodes {
43+
number
44+
author { login }
45+
title
46+
url
47+
mergedAt
48+
}
49+
pageInfo {
50+
hasNextPage
51+
endCursor
52+
}
53+
}
54+
}
55+
}');
56+
fi
57+
58+
CURSOR=$(echo "$PAGE" | jq -r '.data.repository.pullRequests.pageInfo.endCursor');
59+
60+
HAS_NEXT_PAGE=$(echo "$PAGE" | jq '.data.repository.pullRequests.pageInfo.hasNextPage');
61+
62+
PULLS=$(echo "$PAGE" | jq "$PULLS + (.data.repository.pullRequests.nodes | map(select(.mergedAt | fromdate >= $MIN_MERGED_AT)))");
63+
64+
# can't use `"$CURSOR" == 'null'` because the last page still gives a valid cursor
65+
if ! $HAS_NEXT_PAGE; then break; fi;
66+
done
67+
68+
COUNT=$(echo "$PULLS" | jq "length");
69+
70+
echo "Found $COUNT pull requests merged on or after $1\n"
71+
72+
if [ -z $COUNT ]; then exit 0; fi;
73+
74+
echo "Entries:"
75+
echo "$PULLS" | jq -r 'map("* [[#\(.number)]]: \(.title) [[@\(.author.login)]]") | join("\n")'
76+
77+
echo "\nLinks:"
78+
echo "$PULLS" | jq -r 'map("[#\(.number)]: \(.url)") | join("\n")'
79+
80+
echo "\nNew Authors:"
81+
DUPE_AUTHORS=''
82+
83+
# Generate link entries for new authors at the end of the changelog.
84+
echo "$PULLS" | jq -r '.[].author.login' | while read author; do
85+
author_url="https://github.com/$author"
86+
author_entry="[@$author]: $author_url"
87+
88+
# Check if the entry already exists in the changelog or in our list of new authors.
89+
if grep -qF "$author_entry" CHANGELOG.md || echo "$DUPE_AUTHORS" | grep -qF "$author_entry";
90+
then continue;
91+
fi;
92+
93+
DUPE_AUTHORS="$DUPE_AUTHORS$author_entry\n"
94+
echo $author_entry
95+
done

sqlx-cli/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-cli"
3-
version = "0.6.1"
3+
version = "0.6.2"
44
description = "Command-line utility for SQLx, the Rust SQL toolkit."
55
edition = "2021"
66
readme = "README.md"
@@ -27,7 +27,7 @@ path = "src/bin/cargo-sqlx.rs"
2727
[dependencies]
2828
dotenvy = "0.15.0"
2929
tokio = { version = "1.15.0", features = ["macros", "rt", "rt-multi-thread"] }
30-
sqlx = { version = "0.6.1", path = "..", default-features = false, features = [
30+
sqlx = { version = "0.6.2", path = "..", default-features = false, features = [
3131
"migrate",
3232
"any",
3333
"offline",

sqlx-core/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sqlx-core"
3-
version = "0.6.1"
3+
version = "0.6.2"
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"
@@ -106,7 +106,7 @@ offline = ["serde", "either/serde"]
106106
paste = "1.0.6"
107107
ahash = "0.7.6"
108108
atoi = "1.0"
109-
sqlx-rt = { path = "../sqlx-rt", version = "0.6.1" }
109+
sqlx-rt = { path = "../sqlx-rt", version = "0.6.2" }
110110
base64 = { version = "0.13.0", default-features = false, optional = true, features = ["std"] }
111111
bigdecimal_ = { version = "0.3.0", optional = true, package = "bigdecimal" }
112112
rust_decimal = { version = "1.19.0", optional = true }
@@ -178,5 +178,5 @@ event-listener = "2.5.2"
178178
dotenvy = "0.15"
179179

180180
[dev-dependencies]
181-
sqlx = { version = "0.6.1", path = "..", features = ["postgres", "sqlite", "mysql"] }
181+
sqlx = { version = "0.6.2", path = "..", features = ["postgres", "sqlite", "mysql"] }
182182
tokio = { version = "1", features = ["rt"] }

sqlx-macros/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sqlx-macros"
3-
version = "0.6.1"
3+
version = "0.6.2"
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"
@@ -75,8 +75,8 @@ heck = { version = "0.4", features = ["unicode"] }
7575
either = "1.6.1"
7676
once_cell = "1.9.0"
7777
proc-macro2 = { version = "1.0.36", default-features = false }
78-
sqlx-core = { version = "0.6.1", default-features = false, features = ["any"], path = "../sqlx-core" }
79-
sqlx-rt = { version = "0.6.1", default-features = false, path = "../sqlx-rt" }
78+
sqlx-core = { version = "0.6.2", default-features = false, features = ["any"], path = "../sqlx-core" }
79+
sqlx-rt = { version = "0.6.2", default-features = false, path = "../sqlx-rt" }
8080
serde = { version = "1.0.132", features = ["derive"], optional = true }
8181
serde_json = { version = "1.0.73", optional = true }
8282
sha2 = { version = "0.10.0", optional = true }

sqlx-rt/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-rt"
3-
version = "0.6.1"
3+
version = "0.6.2"
44
repository = "https://github.com/launchbadge/sqlx"
55
license = "MIT OR Apache-2.0"
66
description = "Runtime abstraction used by SQLx, the Rust SQL toolkit. Not intended to be used directly."

0 commit comments

Comments
 (0)