Trait rorm_sql::select::Select

source ·
pub trait Select<'until_build, 'post_query> {
    // Required methods
    fn limit_clause(self, limit: LimitClause) -> Self;
    fn distinct(self) -> Self;
    fn where_clause(
        self,
        where_clause: &'until_build Condition<'post_query>
    ) -> Self;
    fn build(self) -> (String, Vec<Value<'post_query>>);
}
Expand description

Trait representing a select builder.

Required Methods§

source

fn limit_clause(self, limit: LimitClause) -> Self

Set a limit to the resulting rows.

source

fn distinct(self) -> Self

Only retrieve distinct rows.

source

fn where_clause(self, where_clause: &'until_build Condition<'post_query>) -> Self

Set a where clause to the query.

source

fn build(self) -> (String, Vec<Value<'post_query>>)

Build the select query

Implementors§

source§

impl<'until_build, 'post_build> Select<'until_build, 'post_build> for SelectImpl<'until_build, 'post_build>