martpet
martpet12mo 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
Esente12mo ago
You write your own functions that wrap Kv methods. Or... the evil way -> changes Kv.prototype 😄
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
martpet
martpet12mo ago
Hmm, yes. But this won't work in Deploy i guess
NDH
NDH12mo ago
Deploy doesn't have the concept of a file. it uses a managed FoundationDB .afaik!