File tree Expand file tree Collapse file tree 4 files changed +6
-10
lines changed Expand file tree Collapse file tree 4 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 1
1
# Unreleased
2
2
3
+ # 0.4.2
4
+
3
5
- Update the ` Rows::join ` method to take a constant argument.
4
6
This is now the prefered join syntax and all examples have been updated.
5
7
- Allow arbitrary correlated subqueries.
6
8
This means that ` Aggregate ` now has an implied bound that allows leaking ` Expr ` from the
7
9
out scope. Correlated subqueries are decorrelated before translating to SQL.
10
+ - Fix loose lifetime on ` Optional ` .
8
11
9
12
# 0.4.1
10
13
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ members = ["rust-query-macros"]
3
3
4
4
[package ]
5
5
name = " rust-query"
6
- version = " 0.4.1 "
6
+ version = " 0.4.2 "
7
7
edition = " 2024"
8
8
description = " A query builder using rust concepts."
9
9
categories = [" database" ]
@@ -16,7 +16,7 @@ sea-query = "0.32"
16
16
sea-query-rusqlite = " 0.7"
17
17
rusqlite = { version = " 0.32" , features = [" modern_sqlite" , " unlock_notify" ] }
18
18
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 " }
20
20
ref-cast = " 1.0.23"
21
21
pretty_assertions = " 1.4.0"
22
22
r2d2_sqlite = " 0.25.0"
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " rust-query-macros"
3
- version = " 0.4.1 "
3
+ version = " 0.4.2 "
4
4
edition = " 2021"
5
5
description = " Proc-macro crate for rust-query."
6
6
license = " MIT OR Apache-2.0"
Original file line number Diff line number Diff line change @@ -39,13 +39,6 @@ impl<T: Table> Typed for Join<T> {
39
39
/// Row reference that can be used in any query in the same transaction.
40
40
///
41
41
/// [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.
49
42
pub struct TableRow < ' t , T > {
50
43
pub ( crate ) _p : PhantomData < & ' t ( ) > ,
51
44
pub ( crate ) _local : PhantomData < LocalClient > ,
You can’t perform that action at this time.
0 commit comments