Skip to main content

HasSelectModel

Trait HasSelectModel 

Source
pub trait HasSelectModel {
    type SelectModel;

    const COLUMN_COUNT: usize;
}
Expand description

The select model and column count of a table.

Generated by #[SQLiteTable], #[PostgresTable] and #[MySQLTable]. SELECT * from the table decodes into SelectModel.

Required Associated Constants§

Source

const COLUMN_COUNT: usize

Number of columns in the table.

Required Associated Types§

Source

type SelectModel

The struct a SELECT * row decodes into.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: HasSelectModel + ?Sized> HasSelectModel for &T

Implementors§

Source§

impl<'a, V, Name, Projection, Query> HasSelectModel for Derived<'a, V, Name, Projection, Query>
where V: SQLParam, Name: Tag, Projection: DerivedProjection<Name>,

Source§

const COLUMN_COUNT: usize = Projection::COLUMN_COUNT

Source§

type SelectModel = <Projection as DerivedProjection<Name>>::Row