ReaderApi

Trait ReaderApi 

Source
pub trait ReaderApi: SqlExecutor<Postgres> {
    // Provided methods
    async fn select<SE, M>(
        &self,
        selection: &SE,
        unique: &dyn PostgresUnique<Mutation = M>,
    ) -> Result<Option<SE>>
       where M: PostgresMutation,
             SE: PostgresSelected + Send + Unpin { ... }
    async fn search<SE>(
        &self,
        selection: &SE,
        location: &dyn PostgresLocation,
        order_by: &dyn OrderBy,
        page: &Pagination,
    ) -> Result<Vec<SE>>
       where SE: PostgresSelected + Send + Unpin { ... }
    async fn search_all<SE>(
        &self,
        selection: &SE,
        location: &dyn PostgresLocation,
        order_by: &dyn OrderBy,
    ) -> Result<Vec<SE>>
       where SE: PostgresSelected + Send + Unpin { ... }
    async fn search_paged<SE>(
        &self,
        selection: &SE,
        location: &dyn PostgresLocation,
        order_by: &dyn OrderBy,
        page: &Pagination,
    ) -> Result<PagedList<Postgres, SE>>
       where SE: PostgresSelected + Send + Unpin { ... }
    async fn exists<M: PostgresMutation>(
        &self,
        unique: &dyn PostgresUnique<Mutation = M>,
    ) -> Result<bool> { ... }
    async fn count(&self, location: &dyn PostgresLocation) -> Result<u64> { ... }
    async fn select_full<SE, M>(
        &self,
        unique: &dyn PostgresUnique<Mutation = M>,
    ) -> Result<Option<SE>>
       where M: PostgresMutation,
             SE: PostgresSelected + Send + Unpin { ... }
    async fn search_full<SE>(
        &self,
        location: &dyn PostgresLocation,
        order_by: &dyn OrderBy,
        page: &Pagination,
    ) -> Result<Vec<SE>>
       where SE: PostgresSelected + Send + Unpin { ... }
    async fn search_full_all<SE>(
        &self,
        location: &dyn PostgresLocation,
        order_by: &dyn OrderBy,
    ) -> Result<Vec<SE>>
       where SE: PostgresSelected + Send + Unpin { ... }
    async fn search_full_paged<SE>(
        &self,
        location: &dyn PostgresLocation,
        order_by: &dyn OrderBy,
        page: &Pagination,
    ) -> Result<PagedList<Postgres, SE>>
       where SE: PostgresSelected + Send + Unpin { ... }
}

Provided Methods§

Source

async fn select<SE, M>( &self, selection: &SE, unique: &dyn PostgresUnique<Mutation = M>, ) -> Result<Option<SE>>

Source

async fn search<SE>( &self, selection: &SE, location: &dyn PostgresLocation, order_by: &dyn OrderBy, page: &Pagination, ) -> Result<Vec<SE>>
where SE: PostgresSelected + Send + Unpin,

Source

async fn search_all<SE>( &self, selection: &SE, location: &dyn PostgresLocation, order_by: &dyn OrderBy, ) -> Result<Vec<SE>>
where SE: PostgresSelected + Send + Unpin,

Source

async fn search_paged<SE>( &self, selection: &SE, location: &dyn PostgresLocation, order_by: &dyn OrderBy, page: &Pagination, ) -> Result<PagedList<Postgres, SE>>
where SE: PostgresSelected + Send + Unpin,

Source

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

Source

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

Source

async fn select_full<SE, M>( &self, unique: &dyn PostgresUnique<Mutation = M>, ) -> Result<Option<SE>>

Source

async fn search_full<SE>( &self, location: &dyn PostgresLocation, order_by: &dyn OrderBy, page: &Pagination, ) -> Result<Vec<SE>>
where SE: PostgresSelected + Send + Unpin,

Source

async fn search_full_all<SE>( &self, location: &dyn PostgresLocation, order_by: &dyn OrderBy, ) -> Result<Vec<SE>>
where SE: PostgresSelected + Send + Unpin,

Source

async fn search_full_paged<SE>( &self, location: &dyn PostgresLocation, order_by: &dyn OrderBy, page: &Pagination, ) -> Result<PagedList<Postgres, SE>>
where SE: PostgresSelected + Send + Unpin,

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§

Source§

impl<T> ReaderApi for T