Trait Table

Source
pub trait Table: Sized + 'static {
    type Schema;
    type Conflict<'t>;
    type UpdateOk<'t>;
    type Update<'t>;
    type Referer;

    // Provided method
    fn join<'inner>(
        rows: &mut Rows<'inner, Self::Schema>,
    ) -> Expr<'inner, Self::Schema, Self> { ... }
}
Expand description

This trait is implemented for all table types as generated by the crate::migration::schema macro.

You can not implement this trait yourself!

Required Associated Types§

Source

type Schema

The schema that this table is a part of.

Source

type Conflict<'t>

The type of conflict that can result from inserting a row in this table. This is the same type that is used for row updates too.

Source

type UpdateOk<'t>

The type of updates used by TransactionMut::update_ok.

Source

type Update<'t>

The type of updates used by TransactionMut::update.

Source

type Referer

The type of error when a delete fails due to a foreign key constraint.

Provided Methods§

Source

fn join<'inner>( rows: &mut Rows<'inner, Self::Schema>, ) -> Expr<'inner, Self::Schema, Self>

👎Deprecated: Please use Rows::join

Please refer to Rows::join.

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§