Merge pull request #675 from SeaQL/update-sea-query

Update sea query
This commit is contained in:
Chris Tsang 2022-04-18 11:28:04 +08:00 committed by GitHub
commit b052b2eb94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 1 deletions

View File

@ -31,7 +31,7 @@ futures-util = { version = "^0.3" }
tracing = { version = "0.1", features = ["log"] }
rust_decimal = { version = "^1", optional = true }
sea-orm-macros = { version = "^0.7.0", path = "sea-orm-macros", optional = true }
sea-query = { version = "^0.23.0", features = ["thread-safe"] }
sea-query = { version = "^0.24.0", features = ["thread-safe"], git = "https://github.com/SeaQL/sea-query" }
sea-strum = { version = "^0.23", features = ["derive", "sea-orm"] }
serde = { version = "^1.0", features = ["derive"] }
serde_json = { version = "^1", optional = true }

View File

@ -161,6 +161,7 @@ where
selector.query().expr(SelectExpr {
expr,
alias: Some(SeaRc::new(Alias::new(&alias))),
window: None,
});
}
}

View File

@ -67,6 +67,7 @@ pub trait QuerySelect: Sized {
self.query().expr(SelectExpr {
expr: col.into_simple_expr(),
alias: Some(SeaRc::new(alias.into_identity())),
window: None,
});
self
}

View File

@ -102,6 +102,7 @@ where
select_two.query().expr(SelectExpr {
expr,
alias: Some(SeaRc::new(Alias::new(&alias))),
window: None,
});
}
select_two