taitan_orm

Trait ReaderMutApi

Source
pub trait ReaderMutApi:
    SqlExecutorMut
    + SqlGeneratorContainer
    + Extractor {
Show 13 methods // Provided methods async fn exists<M: Mutation>( &mut self, unique: &dyn Unique<Mutation = M>, ) -> Result<bool> { ... } async fn count(&mut self, location: &dyn Location) -> Result<u64> { ... } async fn count_all(&mut self, table_name: &str) -> Result<u64> { ... } async fn __select<SE, M>( &mut 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>( &mut 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>( &mut 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>( &mut 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>( &mut 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>( &mut 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>( &mut 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>( &mut 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>( &mut 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>( &mut self, selection: &SE, order_by: &dyn OrderBy, page: &Pagination, ) -> Result<PagedList<Self::DB, SE>> where SE: SelectedEntity<Self::DB> + Send + Unpin + Selection { ... }
}

Provided Methods§

Source

async fn exists<M: Mutation>( &mut self, unique: &dyn Unique<Mutation = M>, ) -> Result<bool>

Source

async fn count(&mut self, location: &dyn Location) -> Result<u64>

Source

async fn count_all(&mut self, table_name: &str) -> Result<u64>

Source

async fn __select<SE, M>( &mut self, selection: &SE::Selection, unique: &dyn Unique<Mutation = M>, ) -> Result<Option<SE>>
where M: Mutation, SE: SelectedEntity<Self::DB> + Send + Unpin,

Source

async fn select<SE, M>( &mut self, selection: &SE, unique: &dyn Unique<Mutation = M>, ) -> Result<Option<SE>>
where M: Mutation, SE: SelectedEntity<Self::DB> + Send + Unpin + Selection,

Source

async fn search<SE>( &mut 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,

Source

async fn __search_paged<SE>( &mut 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,

Source

async fn search_paged<SE>( &mut 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,

Source

async fn __devour<SE>( &mut self, selection: &SE::Selection, order_by: &Option<&dyn OrderBy>, page: &Option<&Pagination>, ) -> Result<Vec<SE>>
where SE: SelectedEntity<Self::DB> + Send + Unpin,

Source

async fn devour<SE>( &mut self, selection: &SE, order_by: &Option<&dyn OrderBy>, page: &Option<&Pagination>, ) -> Result<Vec<SE>>
where SE: SelectedEntity<Self::DB> + Send + Unpin + Selection,

Source

async fn __devour_paged<SE>( &mut self, selection: &SE::Selection, order_by: &dyn OrderBy, page: &Pagination, ) -> Result<PagedList<Self::DB, SE>>
where SE: SelectedEntity<Self::DB> + Send + Unpin,

Source

async fn devour_paged<SE>( &mut self, selection: &SE, order_by: &dyn OrderBy, page: &Pagination, ) -> Result<PagedList<Self::DB, SE>>
where SE: SelectedEntity<Self::DB> + Send + Unpin + Selection,

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.

Implementors§