You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 8, 2023. It is now read-only.
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.
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.