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
https://pysondb.github.io/pysonDB/update
According to updateArray method example on this page
is need to change name=Pyson-CLI for name= ArrayEntry >> # In the file.json the data is updated for all data where name=Pyson-CLI
like:
>> from pysondb import db
>> a=db.getDb("file.json")
>> a.getBy({"name":"ArrayEntry"})
>> [{"name":"ArrayEntry", "epic_array":[0,1,2]}]
>> a.updateArray({"name":"ArrayEntry"},"epic_array",3)
>> a.getBy({"name":"ArrayEntry"})
>> # In the file.json the data is updated for all data where name=ArrayEntry
>> # We can verify it below.
>> [{"name": "ArrayEntry", "epic_array":[0,1,2,3]}]
>> a.updateArray({"name":"ArrayEntry"}, "epic_array", 4, 4)
>> a.getBy({"name":"ArrayEntry"})
>> [{"name": "ArrayEntry", "epic_array":[1,2,3,4]}
to the JSON file:file.json for this example, should add {"name":"ArrayEntry", "epic_array":[0,1,2]} or another fields for this db?
The text was updated successfully, but these errors were encountered:
https://pysondb.github.io/pysonDB/update
According to updateArray method example on this page
is need to change name=Pyson-CLI for name= ArrayEntry
>> # In the file.json the data is updated for all data where name=Pyson-CLI
like:
to the JSON file:file.json for this example, should add {"name":"ArrayEntry", "epic_array":[0,1,2]} or another fields for this db?
The text was updated successfully, but these errors were encountered: