Skip to content

crud: support operation_data in errors #330

Closed
@oleg-jukovec

Description

@oleg-jukovec

We need to support a field named operation_data in errors from crud's *many* requests. The field can contain:

  • tuple for which the error occurred;
  • object with an incorrect format;
  • tuple the operation on which was performed but operation was rollback;
  • tuple the operation on which was not performed because operation was stopped by error.

It would be nice to have an ability to decode the tuple/object into a custom type with crud.Result helper type:

// Result describes CRUD result as an object containing metadata and rows.
type Result struct {
Metadata []FieldFormat
Rows interface{}
rowType reflect.Type
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions