pub enum SqlBuilderError {
FieldMissing(String),
PredicateMissing(String),
JoinMissing(String, String),
MergeMissing(String),
SelectionMissing(String),
RoleRequired(String, String),
FilterInvalid(String),
QueryParamMissing(String),
QueryParamInvalid(String, String),
PredicateArgumentMissing(String),
KeyMismatch(String, String),
PathUnexpected(String),
}
Expand description
Represents all errors from the SQL Builder
Variants§
FieldMissing(String)
The field is not mapped to a column or SQL expression. Contains the field name.
PredicateMissing(String)
The field is not mapped to a column or SQL expression. Contains the field name.
JoinMissing(String, String)
The join is not mapped to a column or SQL expression. Contains the join name and the table name.
MergeMissing(String)
The merge is not mapped. Contains the field name.
SelectionMissing(String)
The selection is not known to the mapper. Contains the field name.
RoleRequired(String, String)
The field requires a role that the query does not have. Contains the role and the query_path.
FilterInvalid(String)
The filter expects other arguments. Typically raised by custom functions (FN) if the number of arguments is wrong.
QueryParamMissing(String)
A query expression requires a query parameter, that is not provided. Contains the parameter.
QueryParamInvalid(String, String)
The query parameter that is required by the query expression is wrong. Contains the parameter and the details.
PredicateArgumentMissing(String)
A predicate requires more arguments, than the toql q uery provided, contains the predicate.
KeyMismatch(String, String)
An key cannot be set, because type is wrong or key is composite key
PathUnexpected(String)
A path was found for a selection that only exists in root, such as $all, $mut, $cnt