[TinyDB] It is possible to have a tag inside other tag?


Using TinyDB…

It is possible to add a tag inside other tag?
Something like this:

— | — User (in root)
----------- | — Name (in User)
----------- | — EMail (in User)
— | — OtherTag (in root)

Well yes and no.

You can create your own list and sublist but you need to create your own delineator. Kinda like what a JSON does.

TAG = root
VALUE = user,name;Jim,email;[email protected]

1 Like

It will only work like this?

So, there is no way to make tags like a tree!?

Thats not what I said. You asked if you could mix and nest objects. My examples shows how you can.

@cian, my idea is to have something like this:

  • Users
    ----- | Name
    ----- | Email
    ---- Tag1
    ---- Tag2

Yes and I showed you that. You are just writting it out different.

TinyDB uses ONE tag, so you need to create sublists in that tag. You do that by changing the delineator (as I said)

Notice I use ; and , different to separate and create sublists.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.