SQLTable

Trait SQLTable 

Source
pub trait SQLTable<'a, Value>:
    SQLSchema<'a, SQLSchemaType, Value>
    + SQLTableInfo
    + Default
    + Clone
where Value: SQLParam + 'a,
{ type Select: SQLModel<'a, Value> + SQLPartial<'a, Value> + Default + 'a; type Insert<T>: SQLModel<'a, Value> + Default; type Update: SQLModel<'a, Value> + Default + 'a; }

Required Associated Types§

Source

type Select: SQLModel<'a, Value> + SQLPartial<'a, Value> + Default + 'a

The type representing a model for SELECT operations on this table. This would be generated by the table macro.

Source

type Insert<T>: SQLModel<'a, Value> + Default

The type representing a model for INSERT operations on this table. Uses PhantomData with tuple markers to track which fields are set

Source

type Update: SQLModel<'a, Value> + Default + 'a

The type representing a model for UPDATE operations on this table. This would be generated by the table macro.

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§