Skip to content
This repository was archived by the owner on Apr 8, 2023. It is now read-only.
This repository was archived by the owner on Apr 8, 2023. It is now read-only.

Typed Collections #7

Description

@snej

The key/value API is awkward because keys and values can be anything. Data and DataOut help, but aren't very safe.

It would be nice to have generic KEY and VALUE parameters on Collection, that can take values like string, seq[byte], int32, Collatable, etc. Then those also need to be added to Snapshot, Transaction, Cursor, and all the CRUD functions.

The problem is, if I just make everything generic, there's a ton of code duplication since the functions get instantiated for every generic type. So it'd be better to make this stuff a wrapper around the existing untyped code.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions