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.

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§