martpet
martpet•2y ago

Prefix Kv keys with a base part

Currently I add base() to all keys:
kv.set([base(), "foo"], value)
kv.set([base(), "foo"], value)
Instead of manually adding base() to every key, could there be a way to have it added by default, for all Kv methods?
4 Replies
Esente
Esente•2y ago
You write your own functions that wrap Kv methods. Or... the evil way -> changes Kv.prototype 😄
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
martpet
martpetOP•2y ago
Hmm, yes. But this won't work in Deploy i guess
Fifth-Normal-Form
Fifth-Normal-Form•2y ago
Deploy doesn't have the concept of a file. it uses a managed FoundationDB .afaik!

Did you find this page helpful?