Closed MachariaK closed 1 year ago
I think Tauri commands require both the Ok
and Err
variants of a result to implement Serialize
, and QueryError
doesn't implement Serialize
, hence why the Future
doesn't either.
I'm not sure if I should implement it.
Is there a way I can save about 5,000 rows faster? Saving one by one is taking too long.
There's create_many
, but I assume you're using SQLite so you'll need to enable the sqlite-create-many
feature on the lib and CLI
Also I'd suggest avoiding using UniqueWhereParam
and using user_batch::id::equals
.
As for your Serialize
problem, for now you could .map_err(|_| ())
after each query's await
and use ()
as the error type.
Thanks a lot.
Would you mind making a reproduction repo? This seems a bit specific to your use case.
Installing serde in the repo that uses the actual artifacts fixed a similar problem for me if it helps anyone
Note: I am relatively new to rust and I am not sure whether this is a bug or I need to level up my skills. Please bear with me.
I am using Tauri with SQLite to create a desktop application which handles large user information. I am storing user information using the following code:
This fails with the following error output: