Closed FaithInMotion closed 6 years ago
EDIT: This comment is now wrong. The single file is just getting overwritten on every add. So this isn't really working for me at all.
I see one mistake, but I'm not going to close this as I still need the understanding. I can make the id the same in the set() calls and get everything in one file. Because I am setting my own id, this works for me - for now. But I'm not sure that this is still as intended - or even desirable? It means "key" is the name of the file and nothing else.
Hi @FaithInMotion ,
I'm not sure I understand the confusion. The "key" is indeed a file name. Writing an object to a key means creating (or overriding) the file name that corresponds to the key, so I can set {"value":1}
to key foo
, and then set {"value":2}
, which would override the previous value.
If you want to "extend" the object stored in a certain key, you can:
I am new to this storage tool. It seems that this tool wants to create a new file for each object I add to the "db".
Database setup:
Logged:
/Users/Legend/Library/Application Support/budgeteer/database
Usage:
What I get (note that also the remove() apparently didn't happen - the file is still there and still has it's contents):
I am not sure what I am doing wrong here.