There are two different rust embedded nosql databases that I have found, polodb and native_db
Was wondering which one is more suitable for my use case?
Lets say I had this code:
struct Customer
{
id: u16,
name: Name,
age: u8,
is_active: bool,
}
struct Name
{
first: String,
last: String,
}
fn main()
{
let customer = Customer{name: Name{first: "John".to_string(), last: "Doe".to_string()},
age: 32, is_active: false};
}
And I wanted to do queries on this, first of all if I saved this I do believe you can use serde to serialize and deserialze it.
If I wanted to do queries, lets say I wanted to search all the rows that contains the first name "John"
, can both polodb or native_db do this based on my structures?