How do I store and get data with CloudDB?

But what do you want to search for ?

This "64"

OR

this "+3275000"

I wanna search for [-65, “+37500000“]

I didn't ask that question.

Which of these will you use to search, or will you use both at the same time?

(If you use both, what is the point in searching, you already have them ?)

It basically will show all these phone numbers and values, I just wanna ONE line of phone number and value.

Last time, then you are on your own.

Which value will you use to search your data with?

The code e.g. 64 or -67 or the number e.g +3275400

With phone number

Your “monosyllabic” questions/answers are not that clear ( at least to me ; - )

option 1) use the phone number as tag, use what you want as value, to retrieve the value ( the same you entered ) use the phone number again, super simple, no fuss ( same thing as @abg said in post #13 )

option 2) save your “list of list” ( a list of { {phone1,value1}, {phone2,value2},… } ) on a single tag, then you have to manage yourself this list of list ( pack/modify/search/update… )

P.S.

Both options have pros and cons… as also using clouddb with respect to tinydb… maybe explaining more of your project may help?!

2 Likes