pub trait UpdateAndFetchResults<Changes, Output>: Connection {
    // Required method
    fn update_and_fetch(&mut self, changeset: Changes) -> QueryResult<Output>;
}
Expand description

A trait defining how to update a record and fetch the updated entry on a certain backend.

The only case where it is required to work with this trait is while implementing a new connection type. Otherwise use SaveChangesDsl

For implementing this trait for a custom backend:

  • The Changes generic parameter represents the changeset that should be stored
  • The Output generic parameter represents the type of the response.

Required Methods§

source

fn update_and_fetch(&mut self, changeset: Changes) -> QueryResult<Output>

See the traits documentation.

Implementors§

source§

impl<Changes, Output, M> UpdateAndFetchResults<Changes, Output> for PooledConnection<M>where M: ManageConnection, M::Connection: UpdateAndFetchResults<Changes, Output>, Self: Connection,