pub type DeleteBuilder<'a, Schema, State, Table> = QueryBuilder<'a, Schema, State, Table>;Expand description
Builds a DELETE query specifically for PostgreSQL
Aliased Type§
pub struct DeleteBuilder<'a, Schema, State, Table> {
pub sql: SQL<'a, PostgresValue<'a>>,
/* private fields */
}Fields§
§sql: SQL<'a, PostgresValue<'a>>Implementations§
Source§impl<'a, S, T> DeleteBuilder<'a, S, DeleteInitial, T>
impl<'a, S, T> DeleteBuilder<'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> DeleteBuilder<'a, S, DeleteWhereSet, T>
impl<'a, S, T> DeleteBuilder<'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