Level / abstract-level

Abstract class for a lexicographically sorted key-value database.
MIT License
123 stars 8 forks source link

allow for non-ASCII names when creating an `AbstractSublevel` #70

Open dcrousso opened 1 year ago

dcrousso commented 1 year ago

would it be possible to add an option when creating an AbstractSublevel (or just remove the requirement altogether) to allow for names with non-ASCII characters?

it seems a bit odd that i could manually create keys for put/get/del/etc. that contain non-ASCII characters, but i cant use sublevel (which is a far nicer experience due to the behavior of keys/iterator/etc.)

for example,

level.get("!foo!bar")

vs

let sublevel = level.sublevel("foo")
sublevel.get("bar")