Repodb.Error
repodb · API reference
type db_error =
| Connection_failed of string
| Query_failed of string
| Constraint_violation of {
constraint_name : string;
message : string;
}
| Not_found
| Multiple_results_found
| Transaction_failed of string
| Migration_failed of {
version : int64;
message : string;
}
| Validation_failed of string list
| Pool_exhausted
| Timeoutexception Unsupported_dialect_feature of {
feature : string;
dialect : string;
suggestion : string option;
}Exception raised when using a feature not supported by the current dialect. For example, PostgreSQL-only JSON containment and key operators on SQLite.
type validation_error = {
field : string;
message : string;
validation : string;
}type 'a db_result = ('a, db_error) resulttype 'a changeset_result = ('a, validation_error list) resultval pp_db_error : Format.formatter -> db_error -> unitval pp_validation_error : Format.formatter -> validation_error -> unitval show_db_error : db_error -> stringval show_validation_error : validation_error -> stringval unsupported_dialect_feature :
feature:string ->
dialect:string ->
?suggestion:string ->
unit ->
'a