Skip to content

clarify error management #87

@schmurfy

Description

@schmurfy

Is your feature request related to a problem? Please describe.
When you try to read multiple data and the request does not return any result (ex: RangeScan, PrefixScan) an error is returned

Describe the solution you'd like
Instead of returning an error I expected an empty result, this is much easier to manage instead of having to check errors which are not real errors or worse having to check the error message returned.

When Get does not match anything I can get this: "not match bucket ," or a ErrKeyNotFound, in this case both should return ErrKeyNotFound

  • for single returned value when an item is not found ErrKeyNotFound is perfect but should be always returned
  • for multiple values (RangeScan, PrefixScan) an empty array should be returned, in those cases having no data returned is not an error, the user should decide.

Describe alternatives you've considered
null

Additional context
null

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions