QueryRelation

Trait QueryRelation 

Source
pub trait QueryRelation:
    QuerySource
    + AsQuery
    + Sized {
    type AllColumns: SelectableExpression<Self> + ValidGrouping<()>;

    // Required method
    fn all_columns() -> Self::AllColumns;
}
Expand description

A SQL database relation that can be queried

This includes tables and database views

Types which implement this trait are usually generated by the table! macro

Required Associated Types§

Source

type AllColumns: SelectableExpression<Self> + ValidGrouping<()>

The type returned by all_columns

Required Methods§

Source

fn all_columns() -> Self::AllColumns

Returns a tuple of all columns belonging to this table.

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§

Source§

impl<T> QueryRelation for T
where T: Table,