plexidev/quick.db

Add data update feature for 2 or more keys

ServerDeveloper9447 opened this issue · 0 comments

Is your feature request related to a problem? Please describe.
I'm always frustated when I need to change more than one key in the value (which is a json) of a key. It's possible to change 1 with dot notation but not with 2 or more keys. I need to call the set function every time.

Describe the solution you'd like
Make a feature like .update("key",{name:"example",money:5000}) in which if the json in the value has these 'name' and 'money' property then it'll change them and in case these don't exist, it'll create them.

Describe alternatives you've considered
It can be done by calling the set function with dot notation n times but it'd be more convinient if it can be done in 1 function call.

Additional context