pub trait ScopedScalarQuery<'q, DB: SqlxDatabase, O>: Sized + Send {
// Required methods
fn fetch_one_scoped(
self,
) -> Pin<Box<dyn Future<Output = Result<O, DbError>> + Send + 'q>>;
fn fetch_optional_scoped(
self,
) -> Pin<Box<dyn Future<Output = Result<Option<O>, DbError>> + Send + 'q>>;
fn fetch_all_scoped(
self,
) -> Pin<Box<dyn Future<Output = Result<Vec<O>, DbError>> + Send + 'q>>;
fn fetch_scoped(self) -> ScopedStream<'q, O>;
fn fetch_many_scoped(
self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Either<DB::QueryResult, O>>, DbError>> + Send + 'q>>;
}Required Methods§
fn fetch_one_scoped( self, ) -> Pin<Box<dyn Future<Output = Result<O, DbError>> + Send + 'q>>
fn fetch_optional_scoped( self, ) -> Pin<Box<dyn Future<Output = Result<Option<O>, DbError>> + Send + 'q>>
fn fetch_all_scoped( self, ) -> Pin<Box<dyn Future<Output = Result<Vec<O>, DbError>> + Send + 'q>>
fn fetch_scoped(self) -> ScopedStream<'q, O>
fn fetch_many_scoped( self, ) -> Pin<Box<dyn Future<Output = Result<Vec<Either<DB::QueryResult, O>>, DbError>> + Send + 'q>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".