WriterMutApi

Trait WriterMutApi 

Source
pub trait WriterMutApi: SqlExecutorMut<Postgres> {
    // Provided methods
    async fn insert(&mut self, entity: &dyn PostgresEntity) -> Result<()> { ... }
    async fn upsert(&mut self, entity: &dyn PostgresEntity) -> Result<()> { ... }
    async fn create(&mut self, entity: &mut dyn PostgresEntity) -> Result<()> { ... }
    async fn update<M: PostgresMutation>(
        &mut self,
        mutation: &M,
        unique: &dyn PostgresUnique<Mutation = M>,
    ) -> Result<bool> { ... }
    async fn change(
        &mut self,
        mutation: &dyn PostgresMutation,
        location: &dyn PostgresLocation,
    ) -> Result<u64> { ... }
    async fn delete<M: PostgresMutation>(
        &mut self,
        unique: &dyn PostgresUnique<Mutation = M>,
    ) -> Result<bool> { ... }
    async fn purify(&mut self, location: &dyn PostgresLocation) -> Result<u64> { ... }
}

Provided Methods§

Source

async fn insert(&mut self, entity: &dyn PostgresEntity) -> Result<()>

Source

async fn upsert(&mut self, entity: &dyn PostgresEntity) -> Result<()>

Source

async fn create(&mut self, entity: &mut dyn PostgresEntity) -> Result<()>

Source

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

Source

async fn change( &mut self, mutation: &dyn PostgresMutation, location: &dyn PostgresLocation, ) -> Result<u64>

Source

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

Source

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

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§