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§
sourcetype Ext<T>: RefCast<From = T>
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.
Provided Methods§
Object Safety§
This trait is not object safe.