pub trait SQLTable<'a, Type, Value>:
SQLSchema<'a, Type, Value>
+ SQLTableInfo
+ Default
+ Clone
+ Copywhere
Type: SQLSchemaType,
Value: SQLParam + 'a,{
type Select: SQLModel<'a, Value> + SQLPartial<'a, Value> + 'a;
type ForeignKeys;
type PrimaryKey;
type Constraints;
type Insert<T>: SQLModel<'a, Value> + Default;
type Update: SQLModel<'a, Value> + 'a;
type Aliased<Name: Tag + 'static>: SQLTable<'a, Type, Value>;
// Required method
fn alias<Name>() -> Self::Aliased<Name>
where Name: Tag + 'static;
}Expand description
A table for the dialect whose value type is Value.
Generated by #[SQLiteTable], #[PostgresTable] and #[MySQLTable],
together with the table’s models.
Required Associated Types§
Sourcetype Select: SQLModel<'a, Value> + SQLPartial<'a, Value> + 'a
type Select: SQLModel<'a, Value> + SQLPartial<'a, Value> + 'a
The model a selected row decodes into (SelectUsers).
Sourcetype ForeignKeys
type ForeignKeys
The table’s foreign keys.
Sourcetype PrimaryKey
type PrimaryKey
The table’s primary key.
Sourcetype Constraints
type Constraints
The table’s other constraints.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".