pub struct QueryBuilder<'a, Schema = (), State = (), Table = ()> {
pub sql: SQL<'a, PostgresValue<'a>>,
/* private fields */
}Expand description
Main query builder for PostgreSQL
The S type parameter represents the schema type, which is used
to ensure type safety when building queries.
Fields§
§sql: SQL<'a, PostgresValue<'a>>Implementations§
Source§impl<'a, S, T> QueryBuilder<'a, S, DeleteInitial, T>
impl<'a, S, T> QueryBuilder<'a, S, DeleteInitial, T>
Sourcepub fn where(
self,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> DeleteBuilder<'a, S, DeleteWhereSet, T>
pub fn where( self, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> DeleteBuilder<'a, S, DeleteWhereSet, T>
Adds a WHERE condition to the query
Sourcepub fn returning(
self,
columns: impl ToSQL<'a, PostgresValue<'a>>,
) -> DeleteBuilder<'a, S, DeleteReturningSet, T>
pub fn returning( self, columns: impl ToSQL<'a, PostgresValue<'a>>, ) -> DeleteBuilder<'a, S, DeleteReturningSet, T>
Adds a RETURNING clause to the query
Source§impl<'a, S, T> QueryBuilder<'a, S, DeleteWhereSet, T>
impl<'a, S, T> QueryBuilder<'a, S, DeleteWhereSet, T>
Sourcepub fn returning(
self,
columns: impl ToSQL<'a, PostgresValue<'a>>,
) -> DeleteBuilder<'a, S, DeleteReturningSet, T>
pub fn returning( self, columns: impl ToSQL<'a, PostgresValue<'a>>, ) -> DeleteBuilder<'a, S, DeleteReturningSet, T>
Adds a RETURNING clause after WHERE
Source§impl<'a, Schema, Table> QueryBuilder<'a, Schema, InsertInitial, Table>where
Table: PostgresTable<'a>,
impl<'a, Schema, Table> QueryBuilder<'a, Schema, InsertInitial, Table>where
Table: PostgresTable<'a>,
Sourcepub fn values<I, T>(
self,
values: I,
) -> InsertBuilder<'a, Schema, InsertValuesSet, Table>where
I: IntoIterator<Item = Table::Insert<T>>,
pub fn values<I, T>(
self,
values: I,
) -> InsertBuilder<'a, Schema, InsertValuesSet, Table>where
I: IntoIterator<Item = Table::Insert<T>>,
Sets values to insert and transitions to ValuesSet state
Source§impl<'a, S, T> QueryBuilder<'a, S, InsertValuesSet, T>
impl<'a, S, T> QueryBuilder<'a, S, InsertValuesSet, T>
Sourcepub fn on_conflict(
self,
conflict: Conflict<'a>,
) -> InsertBuilder<'a, S, InsertOnConflictSet, T>
pub fn on_conflict( self, conflict: Conflict<'a>, ) -> InsertBuilder<'a, S, InsertOnConflictSet, T>
Adds conflict resolution clause following PostgreSQL ON CONFLICT syntax
Sourcepub fn on_conflict_do_nothing(
self,
) -> InsertBuilder<'a, S, InsertOnConflictSet, T>
pub fn on_conflict_do_nothing( self, ) -> InsertBuilder<'a, S, InsertOnConflictSet, T>
Shorthand for ON CONFLICT DO NOTHING (matches any conflict)
Sourcepub fn on_conflict_do_nothing_on<C>(
self,
columns: C,
) -> InsertBuilder<'a, S, InsertOnConflictSet, T>where
C: ToSQL<'a, PostgresValue<'a>>,
pub fn on_conflict_do_nothing_on<C>(
self,
columns: C,
) -> InsertBuilder<'a, S, InsertOnConflictSet, T>where
C: ToSQL<'a, PostgresValue<'a>>,
Shorthand for ON CONFLICT (columns…) DO NOTHING
Sourcepub fn returning(
self,
columns: impl ToSQL<'a, PostgresValue<'a>>,
) -> InsertBuilder<'a, S, InsertReturningSet, T>
pub fn returning( self, columns: impl ToSQL<'a, PostgresValue<'a>>, ) -> InsertBuilder<'a, S, InsertReturningSet, T>
Adds a RETURNING clause and transitions to ReturningSet state
Source§impl<'a, S, T> QueryBuilder<'a, S, InsertOnConflictSet, T>
impl<'a, S, T> QueryBuilder<'a, S, InsertOnConflictSet, T>
Sourcepub fn returning(
self,
columns: impl ToSQL<'a, PostgresValue<'a>>,
) -> InsertBuilder<'a, S, InsertReturningSet, T>
pub fn returning( self, columns: impl ToSQL<'a, PostgresValue<'a>>, ) -> InsertBuilder<'a, S, InsertReturningSet, T>
Adds a RETURNING clause after ON CONFLICT
Source§impl<'a, S> QueryBuilder<'a, S, SelectInitial>
impl<'a, S> QueryBuilder<'a, S, SelectInitial>
Sourcepub fn from<T>(self, query: T) -> SelectBuilder<'a, S, SelectFromSet, T>where
T: ToSQL<'a, PostgresValue<'a>>,
pub fn from<T>(self, query: T) -> SelectBuilder<'a, S, SelectFromSet, T>where
T: ToSQL<'a, PostgresValue<'a>>,
Specifies the table to select FROM and transitions state
Source§impl<'a, S, T> QueryBuilder<'a, S, SelectFromSet, T>
impl<'a, S, T> QueryBuilder<'a, S, SelectFromSet, T>
Sourcepub fn join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'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 ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn natural_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn natural_left_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn natural_left_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn left_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn left_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn left_outer_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn left_outer_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn natural_left_outer_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn natural_left_outer_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn natural_right_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn natural_right_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn right_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn right_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn right_outer_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn right_outer_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn natural_right_outer_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn natural_right_outer_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn natural_full_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn natural_full_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn full_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn full_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn full_outer_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn full_outer_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn natural_full_outer_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn natural_full_outer_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn inner_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn inner_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn cross_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn cross_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn left_join_using<U: PostgresTable<'a>>(
self,
table: U,
columns: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn left_join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToSQL<'a, PostgresValue<'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 ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn left_outer_join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToSQL<'a, PostgresValue<'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 ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn right_join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToSQL<'a, PostgresValue<'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 ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn right_outer_join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToSQL<'a, PostgresValue<'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 ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn full_join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToSQL<'a, PostgresValue<'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 ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn full_outer_join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToSQL<'a, PostgresValue<'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 ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn inner_join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with USING clause (PostgreSQL-specific)
Sourcepub fn join_using<U: PostgresTable<'a>>(
self,
table: U,
columns: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with USING clause (PostgreSQL-specific)
pub fn where( self, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectWhereSet, T>
Sourcepub fn group_by(
self,
expressions: impl IntoIterator<Item = impl ToSQL<'a, PostgresValue<'a>>>,
) -> SelectBuilder<'a, S, SelectGroupSet, T>
pub fn group_by( self, expressions: impl IntoIterator<Item = impl ToSQL<'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: ToSQL<'a, PostgresValue<'a>>,
pub fn order_by<TOrderBy>(
self,
expressions: TOrderBy,
) -> SelectBuilder<'a, S, SelectOrderSet, T>where
TOrderBy: ToSQL<'a, PostgresValue<'a>>,
Sorts the query results
Sourcepub fn as_cte(
self,
name: &'static str,
) -> CTEView<'a, <T as SQLTable<'a, PostgresSchemaType, PostgresValue<'a>>>::Aliased, Self>
pub fn as_cte( self, name: &'static str, ) -> CTEView<'a, <T as SQLTable<'a, PostgresSchemaType, PostgresValue<'a>>>::Aliased, Self>
Converts this SELECT query into a CTE (Common Table Expression) with the given name.
Source§impl<'a, S, T> QueryBuilder<'a, S, SelectJoinSet, T>
impl<'a, S, T> QueryBuilder<'a, S, SelectJoinSet, T>
Sourcepub fn where(
self,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectWhereSet, T>
pub fn where( self, condition: impl ToSQL<'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: ToSQL<'a, PostgresValue<'a>>,
pub fn order_by<TOrderBy>(
self,
expressions: TOrderBy,
) -> SelectBuilder<'a, S, SelectOrderSet, T>where
TOrderBy: ToSQL<'a, PostgresValue<'a>>,
Sorts the query results
Sourcepub fn join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'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 ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn natural_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn natural_left_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn natural_left_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn left_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn left_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn left_outer_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn left_outer_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn natural_left_outer_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn natural_left_outer_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn natural_right_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn natural_right_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn right_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn right_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn right_outer_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn right_outer_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn natural_right_outer_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn natural_right_outer_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn natural_full_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn natural_full_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn full_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn full_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn full_outer_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn full_outer_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn natural_full_outer_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn natural_full_outer_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn inner_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn inner_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn cross_join<U: PostgresTable<'a>>(
self,
table: U,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn cross_join<U: PostgresTable<'a>>( self, table: U, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with ON clause
Sourcepub fn left_join_using<U: PostgresTable<'a>>(
self,
table: U,
columns: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn left_join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToSQL<'a, PostgresValue<'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 ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn left_outer_join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToSQL<'a, PostgresValue<'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 ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn right_join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToSQL<'a, PostgresValue<'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 ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn right_outer_join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToSQL<'a, PostgresValue<'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 ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn full_join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToSQL<'a, PostgresValue<'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 ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn full_outer_join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToSQL<'a, PostgresValue<'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 ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn inner_join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with USING clause (PostgreSQL-specific)
Sourcepub fn join_using<U: PostgresTable<'a>>(
self,
table: U,
columns: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectJoinSet, T>
pub fn join_using<U: PostgresTable<'a>>( self, table: U, columns: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectJoinSet, T>
JOIN with USING clause (PostgreSQL-specific)
Source§impl<'a, S, T> QueryBuilder<'a, S, SelectJoinSet, T>
impl<'a, S, T> QueryBuilder<'a, S, SelectJoinSet, T>
Sourcepub fn as_cte(
self,
name: &'static str,
) -> CTEView<'a, <T as SQLTable<'a, PostgresSchemaType, PostgresValue<'a>>>::Aliased, Self>
pub fn as_cte( self, name: &'static str, ) -> CTEView<'a, <T as SQLTable<'a, PostgresSchemaType, PostgresValue<'a>>>::Aliased, Self>
Converts this SELECT query into a CTE (Common Table Expression) with the given name.
Source§impl<'a, S, T> QueryBuilder<'a, S, SelectWhereSet, T>
impl<'a, S, T> QueryBuilder<'a, S, SelectWhereSet, T>
Sourcepub fn group_by(
self,
expressions: impl IntoIterator<Item = impl ToSQL<'a, PostgresValue<'a>>>,
) -> SelectBuilder<'a, S, SelectGroupSet, T>
pub fn group_by( self, expressions: impl IntoIterator<Item = impl ToSQL<'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: ToSQL<'a, PostgresValue<'a>>,
pub fn order_by<TOrderBy>(
self,
expressions: TOrderBy,
) -> SelectBuilder<'a, S, SelectOrderSet, T>where
TOrderBy: ToSQL<'a, PostgresValue<'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> QueryBuilder<'a, S, SelectWhereSet, T>
impl<'a, S, T> QueryBuilder<'a, S, SelectWhereSet, T>
Sourcepub fn as_cte(
self,
name: &'static str,
) -> CTEView<'a, <T as SQLTable<'a, PostgresSchemaType, PostgresValue<'a>>>::Aliased, Self>
pub fn as_cte( self, name: &'static str, ) -> CTEView<'a, <T as SQLTable<'a, PostgresSchemaType, PostgresValue<'a>>>::Aliased, Self>
Converts this SELECT query into a CTE (Common Table Expression) with the given name.
Source§impl<'a, S, T> QueryBuilder<'a, S, SelectGroupSet, T>
impl<'a, S, T> QueryBuilder<'a, S, SelectGroupSet, T>
Sourcepub fn having(
self,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectGroupSet, T>
pub fn having( self, condition: impl ToSQL<'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: ToSQL<'a, PostgresValue<'a>>,
pub fn order_by<TOrderBy>(
self,
expressions: TOrderBy,
) -> SelectBuilder<'a, S, SelectOrderSet, T>where
TOrderBy: ToSQL<'a, PostgresValue<'a>>,
Adds an ORDER BY clause after GROUP BY
Source§impl<'a, S, T> QueryBuilder<'a, S, SelectGroupSet, T>
impl<'a, S, T> QueryBuilder<'a, S, SelectGroupSet, T>
Sourcepub fn as_cte(
self,
name: &'static str,
) -> CTEView<'a, <T as SQLTable<'a, PostgresSchemaType, PostgresValue<'a>>>::Aliased, Self>
pub fn as_cte( self, name: &'static str, ) -> CTEView<'a, <T as SQLTable<'a, PostgresSchemaType, PostgresValue<'a>>>::Aliased, Self>
Converts this SELECT query into a CTE (Common Table Expression) with the given name.
Source§impl<'a, S, T> QueryBuilder<'a, S, SelectOrderSet, T>
impl<'a, S, T> QueryBuilder<'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> QueryBuilder<'a, S, SelectOrderSet, T>
impl<'a, S, T> QueryBuilder<'a, S, SelectOrderSet, T>
Sourcepub fn as_cte(
self,
name: &'static str,
) -> CTEView<'a, <T as SQLTable<'a, PostgresSchemaType, PostgresValue<'a>>>::Aliased, Self>
pub fn as_cte( self, name: &'static str, ) -> CTEView<'a, <T as SQLTable<'a, PostgresSchemaType, PostgresValue<'a>>>::Aliased, Self>
Converts this SELECT query into a CTE (Common Table Expression) with the given name.
Source§impl<'a, S, T> QueryBuilder<'a, S, SelectLimitSet, T>
impl<'a, S, T> QueryBuilder<'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
Source§impl<'a, S, T> QueryBuilder<'a, S, SelectLimitSet, T>
impl<'a, S, T> QueryBuilder<'a, S, SelectLimitSet, T>
Sourcepub fn as_cte(
self,
name: &'static str,
) -> CTEView<'a, <T as SQLTable<'a, PostgresSchemaType, PostgresValue<'a>>>::Aliased, Self>
pub fn as_cte( self, name: &'static str, ) -> CTEView<'a, <T as SQLTable<'a, PostgresSchemaType, PostgresValue<'a>>>::Aliased, Self>
Converts this SELECT query into a CTE (Common Table Expression) with the given name.
Source§impl<'a, S, T> QueryBuilder<'a, S, SelectOffsetSet, T>
impl<'a, S, T> QueryBuilder<'a, S, SelectOffsetSet, T>
Sourcepub fn as_cte(
self,
name: &'static str,
) -> CTEView<'a, <T as SQLTable<'a, PostgresSchemaType, PostgresValue<'a>>>::Aliased, Self>
pub fn as_cte( self, name: &'static str, ) -> CTEView<'a, <T as SQLTable<'a, PostgresSchemaType, PostgresValue<'a>>>::Aliased, Self>
Converts this SELECT query into a CTE (Common Table Expression) with the given name.
Source§impl<'a, S, State, T> QueryBuilder<'a, S, State, T>where
State: ExecutableState,
impl<'a, S, State, T> QueryBuilder<'a, S, State, T>where
State: ExecutableState,
Sourcepub fn union(
self,
other: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectSetOpSet, T>
pub fn union( self, other: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectSetOpSet, T>
Combines this query with another using UNION.
Sourcepub fn union_all(
self,
other: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectSetOpSet, T>
pub fn union_all( self, other: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectSetOpSet, T>
Combines this query with another using UNION ALL.
Sourcepub fn intersect(
self,
other: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectSetOpSet, T>
pub fn intersect( self, other: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectSetOpSet, T>
Combines this query with another using INTERSECT.
Sourcepub fn intersect_all(
self,
other: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectSetOpSet, T>
pub fn intersect_all( self, other: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectSetOpSet, T>
Combines this query with another using INTERSECT ALL.
Sourcepub fn except(
self,
other: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectSetOpSet, T>
pub fn except( self, other: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectSetOpSet, T>
Combines this query with another using EXCEPT.
Sourcepub fn except_all(
self,
other: impl ToSQL<'a, PostgresValue<'a>>,
) -> SelectBuilder<'a, S, SelectSetOpSet, T>
pub fn except_all( self, other: impl ToSQL<'a, PostgresValue<'a>>, ) -> SelectBuilder<'a, S, SelectSetOpSet, T>
Combines this query with another using EXCEPT ALL.
Source§impl<'a, S, T> QueryBuilder<'a, S, SelectSetOpSet, T>
impl<'a, S, T> QueryBuilder<'a, S, SelectSetOpSet, T>
Sourcepub fn order_by<TOrderBy>(
self,
expressions: TOrderBy,
) -> SelectBuilder<'a, S, SelectOrderSet, T>where
TOrderBy: ToSQL<'a, PostgresValue<'a>>,
pub fn order_by<TOrderBy>(
self,
expressions: TOrderBy,
) -> SelectBuilder<'a, S, SelectOrderSet, T>where
TOrderBy: ToSQL<'a, PostgresValue<'a>>,
Sorts the results of a set operation.
Sourcepub fn limit(self, limit: usize) -> SelectBuilder<'a, S, SelectLimitSet, T>
pub fn limit(self, limit: usize) -> SelectBuilder<'a, S, SelectLimitSet, T>
Limits the results of a set operation.
Sourcepub fn offset(self, offset: usize) -> SelectBuilder<'a, S, SelectOffsetSet, T>
pub fn offset(self, offset: usize) -> SelectBuilder<'a, S, SelectOffsetSet, T>
Offsets the results of a set operation.
Source§impl<'a, Schema, Table> QueryBuilder<'a, Schema, UpdateInitial, Table>
impl<'a, Schema, Table> QueryBuilder<'a, Schema, UpdateInitial, Table>
Sourcepub fn set(
self,
values: Table::Update,
) -> UpdateBuilder<'a, Schema, UpdateSetClauseSet, Table>
pub fn set( self, values: Table::Update, ) -> UpdateBuilder<'a, Schema, UpdateSetClauseSet, Table>
Sets the values to update and transitions to the SetClauseSet state
Source§impl<'a, S, T> QueryBuilder<'a, S, UpdateSetClauseSet, T>
impl<'a, S, T> QueryBuilder<'a, S, UpdateSetClauseSet, T>
Sourcepub fn from(
self,
source: impl ToSQL<'a, PostgresValue<'a>>,
) -> UpdateBuilder<'a, S, UpdateFromSet, T>
pub fn from( self, source: impl ToSQL<'a, PostgresValue<'a>>, ) -> UpdateBuilder<'a, S, UpdateFromSet, T>
Adds a FROM clause and transitions to the FromSet state
Sourcepub fn where(
self,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> UpdateBuilder<'a, S, UpdateWhereSet, T>
pub fn where( self, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> UpdateBuilder<'a, S, UpdateWhereSet, T>
Adds a WHERE condition and transitions to the WhereSet state
Sourcepub fn returning(
self,
columns: impl ToSQL<'a, PostgresValue<'a>>,
) -> UpdateBuilder<'a, S, UpdateReturningSet, T>
pub fn returning( self, columns: impl ToSQL<'a, PostgresValue<'a>>, ) -> UpdateBuilder<'a, S, UpdateReturningSet, T>
Adds a RETURNING clause and transitions to the ReturningSet state
Source§impl<'a, S, T> QueryBuilder<'a, S, UpdateFromSet, T>
impl<'a, S, T> QueryBuilder<'a, S, UpdateFromSet, T>
Sourcepub fn where(
self,
condition: impl ToSQL<'a, PostgresValue<'a>>,
) -> UpdateBuilder<'a, S, UpdateWhereSet, T>
pub fn where( self, condition: impl ToSQL<'a, PostgresValue<'a>>, ) -> UpdateBuilder<'a, S, UpdateWhereSet, T>
Adds a WHERE condition after FROM
Sourcepub fn returning(
self,
columns: impl ToSQL<'a, PostgresValue<'a>>,
) -> UpdateBuilder<'a, S, UpdateReturningSet, T>
pub fn returning( self, columns: impl ToSQL<'a, PostgresValue<'a>>, ) -> UpdateBuilder<'a, S, UpdateReturningSet, T>
Adds a RETURNING clause after FROM
Source§impl<'a, S, T> QueryBuilder<'a, S, UpdateWhereSet, T>
impl<'a, S, T> QueryBuilder<'a, S, UpdateWhereSet, T>
Sourcepub fn returning(
self,
columns: impl ToSQL<'a, PostgresValue<'a>>,
) -> UpdateBuilder<'a, S, UpdateReturningSet, T>
pub fn returning( self, columns: impl ToSQL<'a, PostgresValue<'a>>, ) -> UpdateBuilder<'a, S, UpdateReturningSet, T>
Adds a RETURNING clause after WHERE
Source§impl<'a> QueryBuilder<'a>
impl<'a> QueryBuilder<'a>
Sourcepub const fn new<S>() -> QueryBuilder<'a, S, BuilderInit>
pub const fn new<S>() -> QueryBuilder<'a, S, BuilderInit>
Creates a new query builder for the given schema
Source§impl<'a, Schema> QueryBuilder<'a, Schema, BuilderInit>
impl<'a, Schema> QueryBuilder<'a, Schema, BuilderInit>
pub fn select<T>(&self, columns: T) -> SelectBuilder<'a, Schema, SelectInitial>where
T: ToSQL<'a, PostgresValue<'a>>,
Sourcepub fn select_distinct<T>(
&self,
columns: T,
) -> SelectBuilder<'a, Schema, SelectInitial>where
T: ToSQL<'a, PostgresValue<'a>>,
pub fn select_distinct<T>(
&self,
columns: T,
) -> SelectBuilder<'a, Schema, SelectInitial>where
T: ToSQL<'a, PostgresValue<'a>>,
Begins a SELECT DISTINCT query with the specified columns.
SELECT DISTINCT removes duplicate rows from the result set.
Sourcepub fn select_distinct_on<On, Columns>(
&self,
on: On,
columns: Columns,
) -> SelectBuilder<'a, Schema, SelectInitial>
pub fn select_distinct_on<On, Columns>( &self, on: On, columns: Columns, ) -> SelectBuilder<'a, Schema, SelectInitial>
Begins a SELECT DISTINCT ON query with the specified columns.
Source§impl<'a, Schema> QueryBuilder<'a, Schema, CTEInit>
impl<'a, Schema> QueryBuilder<'a, Schema, CTEInit>
pub fn select<T>(&self, columns: T) -> SelectBuilder<'a, Schema, SelectInitial>where
T: ToSQL<'a, PostgresValue<'a>>,
Sourcepub fn select_distinct<T>(
&self,
columns: T,
) -> SelectBuilder<'a, Schema, SelectInitial>where
T: ToSQL<'a, PostgresValue<'a>>,
pub fn select_distinct<T>(
&self,
columns: T,
) -> SelectBuilder<'a, Schema, SelectInitial>where
T: ToSQL<'a, PostgresValue<'a>>,
Begins a SELECT DISTINCT query with the specified columns after a CTE.
Sourcepub fn select_distinct_on<On, Columns>(
&self,
on: On,
columns: Columns,
) -> SelectBuilder<'a, Schema, SelectInitial>
pub fn select_distinct_on<On, Columns>( &self, on: On, columns: Columns, ) -> SelectBuilder<'a, Schema, SelectInitial>
Begins a SELECT DISTINCT ON query with the specified columns after a CTE.
Sourcepub fn insert<Table>(
&self,
table: Table,
) -> InsertBuilder<'a, Schema, InsertInitial, Table>where
Table: PostgresTable<'a>,
pub fn insert<Table>(
&self,
table: Table,
) -> InsertBuilder<'a, Schema, InsertInitial, Table>where
Table: PostgresTable<'a>,
Begins an INSERT query after a CTE.
Sourcepub fn update<Table>(
&self,
table: Table,
) -> UpdateBuilder<'a, Schema, UpdateInitial, Table>where
Table: PostgresTable<'a>,
pub fn update<Table>(
&self,
table: Table,
) -> UpdateBuilder<'a, Schema, UpdateInitial, Table>where
Table: PostgresTable<'a>,
Begins an UPDATE query after a CTE.
Sourcepub fn delete<Table>(
&self,
table: Table,
) -> DeleteBuilder<'a, Schema, DeleteInitial, Table>where
Table: PostgresTable<'a>,
pub fn delete<Table>(
&self,
table: Table,
) -> DeleteBuilder<'a, Schema, DeleteInitial, Table>where
Table: PostgresTable<'a>,
Begins a DELETE query after a CTE.
pub fn with<C>(&self, cte: C) -> QueryBuilder<'a, Schema, CTEInit>where
C: CTEDefinition<'a>,
Source§impl<'a, Schema> QueryBuilder<'a, Schema, BuilderInit>
impl<'a, Schema> QueryBuilder<'a, Schema, BuilderInit>
pub fn insert<Table>(
&self,
table: Table,
) -> InsertBuilder<'a, Schema, InsertInitial, Table>where
Table: PostgresTable<'a>,
pub fn update<Table>(
&self,
table: Table,
) -> UpdateBuilder<'a, Schema, UpdateInitial, Table>where
Table: PostgresTable<'a>,
pub fn delete<Table>(
&self,
table: Table,
) -> DeleteBuilder<'a, Schema, DeleteInitial, Table>where
Table: PostgresTable<'a>,
pub fn with<C>(&self, cte: C) -> QueryBuilder<'a, Schema, CTEInit>where
C: CTEDefinition<'a>,
Trait Implementations§
Source§impl<'a, Schema: Clone, State: Clone, Table: Clone> Clone for QueryBuilder<'a, Schema, State, Table>
impl<'a, Schema: Clone, State: Clone, Table: Clone> Clone for QueryBuilder<'a, Schema, State, Table>
Source§fn clone(&self) -> QueryBuilder<'a, Schema, State, Table>
fn clone(&self) -> QueryBuilder<'a, Schema, State, Table>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more