rust_query

Trait Table

source
pub trait Table: Sized + 'static {
    type Ext<T>: RefCast<From = T>;
    type Schema;

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

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

Required Associated Types§

source

type Ext<T>: RefCast<From = T>

The associated type Table::Ext is used as the deref target by several types that implement IntoColumn. This adds convenient methods to access related tables that have a foreign key constraint.

source

type Schema

The schema that this table is a part of.

Provided Methods§

source

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

Please refer to Rows::join.

Object Safety§

This trait is not object safe.

Implementors§