Skip to main content

DiffOps

Trait DiffOps 

Source
pub trait DiffOps<T: SchemaWithPK, S, B>: Sized {
    type Format: Format<S, B>;
    type DeleteArg;

    // Required methods
    fn insert(
        self,
        insert: Insert<T, S, B>,
    ) -> DiffSetBuilder<Self::Format, T, S, B>;
    fn delete(
        self,
        delete: Self::DeleteArg,
    ) -> DiffSetBuilder<Self::Format, T, S, B>;
    fn update(
        self,
        update: Update<T, Self::Format, S, B>,
    ) -> DiffSetBuilder<Self::Format, T, S, B>;
}
Expand description

Trait for adding DML operations (INSERT, DELETE, UPDATE) to a diff set.

Implemented for both DiffSetBuilder and DiffSet, allowing operations to be added to either type. Methods consume self and return a DiffSetBuilder.

Required Associated Types§

Source

type Format: Format<S, B>

The format (changeset or patchset) of the diff set.

Source

type DeleteArg

The argument type for the delete operation.

Required Methods§

Source

fn insert( self, insert: Insert<T, S, B>, ) -> DiffSetBuilder<Self::Format, T, S, B>

Add an INSERT operation.

Source

fn delete( self, delete: Self::DeleteArg, ) -> DiffSetBuilder<Self::Format, T, S, B>

Add a DELETE operation.

Source

fn update( self, update: Update<T, Self::Format, S, B>, ) -> DiffSetBuilder<Self::Format, T, S, B>

Add an UPDATE operation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§