Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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