Skip to content

Commit 9bcb3cc

Browse files
author
lucasholten
committed
Prepare release
1 parent f5f51c3 commit 9bcb3cc

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
# Unreleased
22

3+
# 0.4.2
4+
35
- Update the `Rows::join` method to take a constant argument.
46
This is now the prefered join syntax and all examples have been updated.
57
- Allow arbitrary correlated subqueries.
68
This means that `Aggregate` now has an implied bound that allows leaking `Expr` from the
79
out scope. Correlated subqueries are decorrelated before translating to SQL.
10+
- Fix loose lifetime on `Optional`.
811

912
# 0.4.1
1013

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = ["rust-query-macros"]
33

44
[package]
55
name = "rust-query"
6-
version = "0.4.1"
6+
version = "0.4.2"
77
edition = "2024"
88
description = "A query builder using rust concepts."
99
categories = ["database"]
@@ -16,7 +16,7 @@ sea-query = "0.32"
1616
sea-query-rusqlite = "0.7"
1717
rusqlite = { version = "0.32", features = ["modern_sqlite", "unlock_notify"] }
1818
k12 = {version = "0.3", optional = true}
19-
rust-query-macros = { path = "rust-query-macros", version = "=0.4.1" }
19+
rust-query-macros = { path = "rust-query-macros", version = "=0.4.2" }
2020
ref-cast = "1.0.23"
2121
pretty_assertions = "1.4.0"
2222
r2d2_sqlite = "0.25.0"

rust-query-macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rust-query-macros"
3-
version = "0.4.1"
3+
version = "0.4.2"
44
edition = "2021"
55
description = "Proc-macro crate for rust-query."
66
license = "MIT OR Apache-2.0"

src/db.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,6 @@ impl<T: Table> Typed for Join<T> {
3939
/// Row reference that can be used in any query in the same transaction.
4040
///
4141
/// [TableRow] is covariant in `'t` and restricted to a single thread to prevent it from being used in a different transaction.
42-
///
43-
/// Note that the [TableRow] can typically only be used at the top level of each query (not inside aggregates).
44-
/// `rustc` sometimes suggested making the transaction lifetime `'static` to get around this issue.
45-
/// While it is a valid and correct suggestion, you probably don't want a `'static` transaction.
46-
///
47-
/// The appropriate solution is to use [crate::args::Aggregate::filter_on] to bring [TableRow]
48-
/// columns into the [crate::aggregate] inner scope.
4942
pub struct TableRow<'t, T> {
5043
pub(crate) _p: PhantomData<&'t ()>,
5144
pub(crate) _local: PhantomData<LocalClient>,

0 commit comments

Comments
 (0)