pub trait SelectableHelper<DB>: Sized + Selectable<DB>where
DB: Backend,{
// Required method
fn as_select() -> SelectBy<Self, DB>;
// Provided method
fn as_returning() -> SelectBy<Self, DB> { ... }
}
Expand description
This helper trait provides several methods for
constructing a select or returning clause based on a
Selectable
implementation.
Required Methods§
Sourcefn as_select() -> SelectBy<Self, DB>
fn as_select() -> SelectBy<Self, DB>
Construct a select clause based on a Selectable
implementation.
The returned select clause enforces that you use the same type for constructing the select clause and for loading the query result into.
Provided Methods§
Sourcefn as_returning() -> SelectBy<Self, DB>
fn as_returning() -> SelectBy<Self, DB>
An alias for as_select
that can be used with returning clauses
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.