There are a number of articles explaining the problem of multi-threaded access with SQLite but I couldn't find any easy solutions. How does one access SQLite from e.g. a web server where multiple threads work concurrently?
Sources (that still don't explain any easy work-around):
You can use
r2d2-sqliteconnection pooling +std::sync::Arcto have multi-threaded access to SQLite. Example:And in Rust: