Trait diesel::query_source::Table [] [src]

pub trait Table: QuerySource + AsQuery + Sized {
    type PrimaryKey: SelectableExpression<Self> + NonAggregate;
    type AllColumns: SelectableExpression<Self> + NonAggregate;
    fn primary_key(&self) -> Self::PrimaryKey;
    fn all_columns() -> Self::AllColumns;

    fn inner_join<T>(self, other: T) -> Join<Self, T, Inner> where T: Table, Self: JoinTo<T, Inner> { ... }
    fn left_outer_join<T>(self, other: T) -> Join<Self, T, LeftOuter> where T: Table, Self: JoinTo<T, LeftOuter> { ... }

A SQL database table. Types which implement this trait should have been generated by the table! macro.

Associated Types

Required Methods

Provided Methods