I want a database that supports nested structures, has a seaorm like syntax and can query stuff that has got nested fields e.g. the first name or the street number.
What if I used serde/postcard instead, would this be ok in regards to performance, particularly if customer was a vector and contained thousands of records.
It is my opinion that if you have structured data you should use a relational database. So here it probably means SQLite if you want to embed it. You'll always be able to fallback to unstructured data by using a json column with the json functions and operators.
Yes it does mean learning some SQL. But libraries like sqlx make it really easy to map a SQL query to an arbitrary Rust struct.
Is this like serializing it to json and deserializing it if I used it with Rust?
I know SQL and can use it, but I don't like typing every command as a string, you know big issue with this is it will compile even if there is a syntax error, plus no auto completion etc, that is why I wanted more of a seaorm like syntax.
According to chage ai, apparently seaorm does support nested structures though I do not know if this is correct or not this is what it gave me: