pub type SelectBuilder<'a, Schema, State, Table = ()> = QueryBuilder<'a, Schema, State, Table>;Expand description
Builds a SELECT query specifically for PostgreSQL
Aliased Type§
pub struct SelectBuilder<'a, Schema, State, Table = ()> {
pub sql: SQL<'a, PostgresValue<'a>>,
/* private fields */
}Fields§
§sql: SQL<'a, PostgresValue<'a>>Implementations§
Source§impl<'a, S> SelectBuilder<'a, S, SelectInitial>
impl<'a, S> SelectBuilder<'a, S, SelectInitial>
Sourcepub fn from<T>(self, query: T) -> SelectBuilder<'a, S, SelectFromSet, T>where
T: ToPostgresSQL<'a>,
pub fn from<T>(self, query: T) -> SelectBuilder<'a, S, SelectFromSet, T>where
T: ToPostgresSQL<'a>,
Specifies the table to select FROM and transitions state
Source§impl<'a, S, T> SelectBuilder<'a, S, SelectFromSet, T>
impl<'a, S, T> SelectBuilder<'a, S, SelectFromSet, T>
Sourcepub fn join<U: PostgresTable<'a>>(
self,
table: U,
condition: SQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn join<U: PostgresTable<'a>>( self, table: U, condition: SQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
Adds a JOIN clause to the query
Sourcepub fn natural_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn natural_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn natural_left_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn natural_left_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn left_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn left_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn left_outer_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn left_outer_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn natural_left_outer_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn natural_left_outer_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn natural_right_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn natural_right_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn right_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn right_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn right_outer_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn right_outer_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn natural_right_outer_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn natural_right_outer_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn natural_full_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn natural_full_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn full_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn full_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn full_outer_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn full_outer_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn natural_full_outer_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn natural_full_outer_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn inner_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn inner_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn cross_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn cross_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn left_join_using<U: PostgresTable<'a>>(
self,
table: U,
columns: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn left_join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with USING clause (PostgreSQL-specific)
Sourcepub fn left_outer_join_using<U: PostgresTable<'a>>(
self,
table: U,
columns: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn left_outer_join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with USING clause (PostgreSQL-specific)
Sourcepub fn right_join_using<U: PostgresTable<'a>>(
self,
table: U,
columns: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn right_join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with USING clause (PostgreSQL-specific)
Sourcepub fn right_outer_join_using<U: PostgresTable<'a>>(
self,
table: U,
columns: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn right_outer_join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with USING clause (PostgreSQL-specific)
Sourcepub fn full_join_using<U: PostgresTable<'a>>(
self,
table: U,
columns: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn full_join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with USING clause (PostgreSQL-specific)
Sourcepub fn full_outer_join_using<U: PostgresTable<'a>>(
self,
table: U,
columns: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn full_outer_join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with USING clause (PostgreSQL-specific)
Sourcepub fn inner_join_using<U: PostgresTable<'a>>(
self,
table: U,
columns: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn inner_join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with USING clause (PostgreSQL-specific)
Sourcepub fn join_using<U: PostgresTable<'a>>(
self,
table: U,
columns: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with USING clause (PostgreSQL-specific)
pub fn where( self, condition: SQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectWhereSet, T>
Sourcepub fn group_by(
self,
expressions: Vec<SQL<'a, PostgresValue<'a>>>,
) -> SelectBuilder<'a, S, SelectGroupSet, T>
pub fn group_by( self, expressions: Vec<SQL<'a, PostgresValue<'a>>>, ) -> SelectBuilder<'a, S, SelectGroupSet, T>
Adds a GROUP BY clause to the query
Sourcepub fn limit(self, limit: usize) -> SelectBuilder<'a, S, SelectLimitSet, T>
pub fn limit(self, limit: usize) -> SelectBuilder<'a, S, SelectLimitSet, T>
Limits the number of rows returned
Sourcepub fn offset(self, offset: usize) -> SelectBuilder<'a, S, SelectOffsetSet, T>
pub fn offset(self, offset: usize) -> SelectBuilder<'a, S, SelectOffsetSet, T>
Sets the offset for the query results
Sourcepub fn order_by<TOrderBy>(
self,
expressions: TOrderBy,
) -> SelectBuilder<'a, S, SelectOrderSet, T>where
TOrderBy: ToPostgresSQL<'a>,
pub fn order_by<TOrderBy>(
self,
expressions: TOrderBy,
) -> SelectBuilder<'a, S, SelectOrderSet, T>where
TOrderBy: ToPostgresSQL<'a>,
Sorts the query results
Source§impl<'a, S, T> SelectBuilder<'a, S, SelectJoinSet, T>
impl<'a, S, T> SelectBuilder<'a, S, SelectJoinSet, T>
Sourcepub fn where(
self,
condition: SQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectWhereSet, T>
pub fn where( self, condition: SQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectWhereSet, T>
Adds a WHERE condition after a JOIN
Sourcepub fn order_by<TOrderBy>(
self,
expressions: TOrderBy,
) -> SelectBuilder<'a, S, SelectOrderSet, T>where
TOrderBy: ToPostgresSQL<'a>,
pub fn order_by<TOrderBy>(
self,
expressions: TOrderBy,
) -> SelectBuilder<'a, S, SelectOrderSet, T>where
TOrderBy: ToPostgresSQL<'a>,
Sorts the query results
Sourcepub fn join<U: PostgresTable<'a>>(
self,
table: U,
condition: SQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn join<U: PostgresTable<'a>>( self, table: U, condition: SQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
Adds a JOIN clause to the query
Sourcepub fn natural_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn natural_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn natural_left_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn natural_left_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn left_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn left_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn left_outer_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn left_outer_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn natural_left_outer_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn natural_left_outer_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn natural_right_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn natural_right_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn right_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn right_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn right_outer_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn right_outer_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn natural_right_outer_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn natural_right_outer_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn natural_full_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn natural_full_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn full_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn full_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn full_outer_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn full_outer_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn natural_full_outer_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn natural_full_outer_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn inner_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn inner_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn cross_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn cross_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn left_join_using<U: PostgresTable<'a>>(
self,
table: U,
columns: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn left_join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with USING clause (PostgreSQL-specific)
Sourcepub fn left_outer_join_using<U: PostgresTable<'a>>(
self,
table: U,
columns: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn left_outer_join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with USING clause (PostgreSQL-specific)
Sourcepub fn right_join_using<U: PostgresTable<'a>>(
self,
table: U,
columns: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn right_join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with USING clause (PostgreSQL-specific)
Sourcepub fn right_outer_join_using<U: PostgresTable<'a>>(
self,
table: U,
columns: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn right_outer_join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with USING clause (PostgreSQL-specific)
Sourcepub fn full_join_using<U: PostgresTable<'a>>(
self,
table: U,
columns: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn full_join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with USING clause (PostgreSQL-specific)
Sourcepub fn full_outer_join_using<U: PostgresTable<'a>>(
self,
table: U,
columns: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn full_outer_join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with USING clause (PostgreSQL-specific)
Sourcepub fn inner_join_using<U: PostgresTable<'a>>(
self,
table: U,
columns: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn inner_join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with USING clause (PostgreSQL-specific)
Sourcepub fn join_using<U: PostgresTable<'a>>(
self,
table: U,
columns: impl ToPostgresSQL<'a>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToPostgresSQL<'a>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with USING clause (PostgreSQL-specific)
Source§impl<'a, S, T> SelectBuilder<'a, S, SelectWhereSet, T>
impl<'a, S, T> SelectBuilder<'a, S, SelectWhereSet, T>
Sourcepub fn group_by(
self,
expressions: Vec<SQL<'a, PostgresValue<'a>>>,
) -> SelectBuilder<'a, S, SelectGroupSet, T>
pub fn group_by( self, expressions: Vec<SQL<'a, PostgresValue<'a>>>, ) -> SelectBuilder<'a, S, SelectGroupSet, T>
Adds a GROUP BY clause after a WHERE
Sourcepub fn order_by<TOrderBy>(
self,
expressions: TOrderBy,
) -> SelectBuilder<'a, S, SelectOrderSet, T>where
TOrderBy: ToPostgresSQL<'a>,
pub fn order_by<TOrderBy>(
self,
expressions: TOrderBy,
) -> SelectBuilder<'a, S, SelectOrderSet, T>where
TOrderBy: ToPostgresSQL<'a>,
Adds an ORDER BY clause after a WHERE
Sourcepub fn limit(self, limit: usize) -> SelectBuilder<'a, S, SelectLimitSet, T>
pub fn limit(self, limit: usize) -> SelectBuilder<'a, S, SelectLimitSet, T>
Adds a LIMIT clause after a WHERE
Source§impl<'a, S, T> SelectBuilder<'a, S, SelectGroupSet, T>
impl<'a, S, T> SelectBuilder<'a, S, SelectGroupSet, T>
Sourcepub fn having(
self,
condition: SQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectGroupSet, T>
pub fn having( self, condition: SQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectGroupSet, T>
Adds a HAVING clause after GROUP BY
Sourcepub fn order_by<TOrderBy>(
self,
expressions: TOrderBy,
) -> SelectBuilder<'a, S, SelectOrderSet, T>where
TOrderBy: ToPostgresSQL<'a>,
pub fn order_by<TOrderBy>(
self,
expressions: TOrderBy,
) -> SelectBuilder<'a, S, SelectOrderSet, T>where
TOrderBy: ToPostgresSQL<'a>,
Adds an ORDER BY clause after GROUP BY
Source§impl<'a, S, T> SelectBuilder<'a, S, SelectOrderSet, T>
impl<'a, S, T> SelectBuilder<'a, S, SelectOrderSet, T>
Sourcepub fn limit(self, limit: usize) -> SelectBuilder<'a, S, SelectLimitSet, T>
pub fn limit(self, limit: usize) -> SelectBuilder<'a, S, SelectLimitSet, T>
Adds a LIMIT clause after ORDER BY
Source§impl<'a, S, T> SelectBuilder<'a, S, SelectLimitSet, T>
impl<'a, S, T> SelectBuilder<'a, S, SelectLimitSet, T>
Sourcepub fn offset(self, offset: usize) -> SelectBuilder<'a, S, SelectOffsetSet, T>
pub fn offset(self, offset: usize) -> SelectBuilder<'a, S, SelectOffsetSet, T>
Adds an OFFSET clause after LIMIT