You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
In Database.h it says "a Database object shall not be shared by multiple threads".
"SQLiteC++ does not support the fully thread-safe “Serialized” mode of SQLite, because of the way it shares the underlying SQLite precompiled statement in a custom shared pointer (See the inner class “Statement::Ptr”)."
I didn't quite understand the limitation reason for not sharing Database object.
My question is:
is it safe if I have a single database connection, and multiple threads are calling a function to read from/write to the database? (the function creates prepared statement locally, so every thread has its own prepared statement)
Thanks
The text was updated successfully, but these errors were encountered:
Hi,
In Database.h it says "a Database object shall not be shared by multiple threads".
"SQLiteC++ does not support the fully thread-safe “Serialized” mode of SQLite, because of the way it shares the underlying SQLite precompiled statement in a custom shared pointer (See the inner class “Statement::Ptr”)."
I didn't quite understand the limitation reason for not sharing Database object.
My question is:
is it safe if I have a single database connection, and multiple threads are calling a function to read from/write to the database? (the function creates prepared statement locally, so every thread has its own prepared statement)
Thanks
The text was updated successfully, but these errors were encountered: