diesel

Function select

Source
pub fn select<T>(expression: T) -> Select<SelectStatement<()>, T>
where T: Expression, SelectStatement<()>: SelectDsl<T>,
Expand description

Creates a bare select statement, with no from clause. Primarily used for testing diesel itself, but likely useful for third party crates as well. The given expressions must be selectable from anywhere.