How do I use TinyDB (feat. namespace)?

You can do this several different ways in TinyDB.

(I assume different players share the same device for this problem.)

NameSpaces are good for cases where you need to reuse the same tags for different purposes. In this sample, a Fruit stand keeps its fruit prices in one namespace (Prices), using the fruit name as a tag. For the current customer, the quantity of each fruit type being bought might be kept in another namespace (purchases), under the same tags to match up the prices and quantities.

Another, different approach, would be to use the text JOIN block to build up tags with the player name and what is being looked up, like

  • score/ABG
  • score/111373

In this case, you only need one Namespace, because the tags are all different.
Sample app:

For simplicity, don't mix the two approaches.