pub trait KeyFields {
    type Entity;

    fn fields() -> Vec<String, Global>;
    fn params(&self) -> Vec<SqlArg, Global>;
}
Expand description

The KeyFields trait is similar to Key but provides field names instead of columns. It is used to build key predicates in Toql queries.

Required Associated Types

Required Methods

Return primary key fields for a given entity.

Return key values as params. Useful to loop across a composite key.

Implementors