pub trait ReaderApi:
SqlExecutor
+ SqlGeneratorContainer
+ Extractor {
Show 13 methods
// Provided methods
async fn exists<M: Mutation>(
&self,
unique: &dyn Unique<Mutation = M>,
) -> Result<bool> { ... }
async fn count(&self, location: &dyn Location) -> Result<u64> { ... }
async fn count_all(&self, table_name: &str) -> Result<u64> { ... }
async fn __select<SE, M>(
&self,
selection: &SE::Selection,
unique: &dyn Unique<Mutation = M>,
) -> Result<Option<SE>>
where M: Mutation,
SE: SelectedEntity<Self::DB> + Send + Unpin { ... }
async fn select<SE, M>(
&self,
selection: &SE,
unique: &dyn Unique<Mutation = M>,
) -> Result<Option<SE>>
where M: Mutation,
SE: SelectedEntity<Self::DB> + Send + Unpin + Selection { ... }
async fn __search<SE>(
&self,
selection: &SE::Selection,
location: &dyn Location,
order_by: &Option<&dyn OrderBy>,
page: &Option<&Pagination>,
) -> Result<Vec<SE>>
where SE: SelectedEntity<Self::DB> + Send + Unpin { ... }
async fn search<SE>(
&self,
selection: &SE,
location: &dyn Location,
order_by: &Option<&dyn OrderBy>,
page: &Option<&Pagination>,
) -> Result<Vec<SE>>
where SE: SelectedEntity<Self::DB> + Send + Unpin + Selection { ... }
async fn __search_paged<SE>(
&self,
selection: &SE::Selection,
location: &dyn Location,
order_by: &dyn OrderBy,
page: &Pagination,
) -> Result<PagedList<Self::DB, SE>>
where SE: SelectedEntity<Self::DB> + Send + Unpin { ... }
async fn search_paged<SE>(
&self,
selection: &SE,
location: &dyn Location,
order_by: &dyn OrderBy,
page: &Pagination,
) -> Result<PagedList<Self::DB, SE>>
where SE: SelectedEntity<Self::DB> + Send + Unpin + Selection { ... }
async fn __devour<SE>(
&self,
selection: &SE::Selection,
order_by: &Option<&dyn OrderBy>,
page: &Option<&Pagination>,
) -> Result<Vec<SE>>
where SE: SelectedEntity<Self::DB> + Send + Unpin { ... }
async fn devour<SE>(
&self,
selection: &SE,
order_by: &Option<&dyn OrderBy>,
page: &Option<&Pagination>,
) -> Result<Vec<SE>>
where SE: SelectedEntity<Self::DB> + Send + Unpin + Selection { ... }
async fn __devour_paged<SE>(
&self,
selection: &SE::Selection,
order_by: &dyn OrderBy,
page: &Pagination,
) -> Result<PagedList<Self::DB, SE>>
where SE: SelectedEntity<Self::DB> + Send + Unpin { ... }
async fn devour_paged<SE>(
&self,
selection: &SE,
order_by: &dyn OrderBy,
page: &Pagination,
) -> Result<PagedList<Self::DB, SE>>
where SE: SelectedEntity<Self::DB> + Send + Unpin + Selection { ... }
}Provided Methods§
async fn exists<M: Mutation>( &self, unique: &dyn Unique<Mutation = M>, ) -> Result<bool>
async fn count(&self, location: &dyn Location) -> Result<u64>
async fn count_all(&self, table_name: &str) -> Result<u64>
async fn __select<SE, M>( &self, selection: &SE::Selection, unique: &dyn Unique<Mutation = M>, ) -> Result<Option<SE>>
async fn select<SE, M>( &self, selection: &SE, unique: &dyn Unique<Mutation = M>, ) -> Result<Option<SE>>
async fn __search<SE>( &self, selection: &SE::Selection, location: &dyn Location, order_by: &Option<&dyn OrderBy>, page: &Option<&Pagination>, ) -> Result<Vec<SE>>
async fn search<SE>( &self, selection: &SE, location: &dyn Location, order_by: &Option<&dyn OrderBy>, page: &Option<&Pagination>, ) -> Result<Vec<SE>>
async fn __search_paged<SE>( &self, selection: &SE::Selection, location: &dyn Location, order_by: &dyn OrderBy, page: &Pagination, ) -> Result<PagedList<Self::DB, SE>>
async fn search_paged<SE>( &self, selection: &SE, location: &dyn Location, order_by: &dyn OrderBy, page: &Pagination, ) -> Result<PagedList<Self::DB, SE>>
async fn __devour<SE>( &self, selection: &SE::Selection, order_by: &Option<&dyn OrderBy>, page: &Option<&Pagination>, ) -> Result<Vec<SE>>
async fn devour<SE>( &self, selection: &SE, order_by: &Option<&dyn OrderBy>, page: &Option<&Pagination>, ) -> Result<Vec<SE>>
async fn __devour_paged<SE>( &self, selection: &SE::Selection, order_by: &dyn OrderBy, page: &Pagination, ) -> Result<PagedList<Self::DB, SE>>
async fn devour_paged<SE>( &self, selection: &SE, order_by: &dyn OrderBy, page: &Pagination, ) -> Result<PagedList<Self::DB, SE>>
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.