MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / exprs

Method exprs

src/query/helper.rs:493–500  ·  view source on GitHub ↗

Add select expressions from vector of [`SelectExpr`]. ``` use sea_orm::sea_query::Expr; use sea_orm::{entity::*, tests_cfg::cake, DbBackend, QuerySelect, QueryTrait}; assert_eq!( cake::Entity::find() .select_only() .exprs([ Expr::col((cake::Entity, cake::Column::Id)), Expr::col((cake::Entity, cake::Column::Name)), ]) .build(DbBackend::MySql) .to_string(), "SELECT `cake`.`id`, `cake`.`name` FROM `

(mut self, exprs: I)

Source from the content-addressed store, hash-verified

491 /// );
492 /// ```
493 fn exprs<T, I>(mut self, exprs: I) -> Self
494 where
495 T: Into<SelectExpr>,
496 I: IntoIterator<Item = T>,
497 {
498 self.query().exprs(exprs);
499 self
500 }
501
502 /// Select column.
503 /// ```

Callers 15

prepare_selectMethod · 0.80
fetch_pageFunction · 0.80
fetch_page_rawFunction · 0.80
fetchFunction · 0.80
fetch_rawFunction · 0.80
num_pagesFunction · 0.80
num_pages_rawFunction · 0.80
fetch_and_nextFunction · 0.80
fetch_and_next_rawFunction · 0.80
into_streamFunction · 0.80
into_stream_rawFunction · 0.80

Implementers 1

cursor.rssrc/executor/cursor.rs

Calls 1

queryMethod · 0.45

Tested by 2

mainFunction · 0.64