I can easily save this and query data such as first name, especially the way how it is all structured
Supports structures such as like in my example where one of the field is linking to another structure
Not too sure which database to use. I was thinking about redb which is key-value pair but it seems like if you are trying to query something that is not the key (such as the first name), then this may be slow at retrieving your data, unless if I am mistaken?
Since you don't have experience with databases, a good place to start is to learn a little SQL and use SQLite, which is a great database and one of the simplest to use.
The queries you are asking about would be more difficult, but not impossible, with redb. Looks like you would have to roll-your-own secondaries by creating multiple tables to efficiently query by something other than the primary key. And there is no query language.
I don't think you really understand what I am after. I don't want to use sql, I want something like a sea-orm approach in terms of syntax such as inserting and querying, except databases won't support columns where the data is like this name: Name, where the field is linking to another structure.
I don't know what you mean, I couldn't parse that sentence, sorry. If you look in the ORMs section of the link I posted you may find what you're looking for. If this isn't helpful, please just ignore it.