Skip to content

Signature Of KeyValue::Batch::Get-Keys #25

@adamgfraser

Description

@adamgfraser

The current signature is:

get-keys: func(bucket: bucket) -> keys

Unlike almost all the other functions in the interface, this one returns a raw value versus a result. This seems strange since getting the keys could fail with a variety of database related errors (e.g. can't connect to the database).

I would have thought the signature would be:

get-keys: func(bucket: bucket) -> result<keys, error>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions