From b1448d21a99a72f3a69dbafff0ca3e2e038efe1b Mon Sep 17 00:00:00 2001 From: Joscha Date: Sun, 11 Dec 2022 20:59:50 +0100 Subject: [PATCH] Add short readme --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..d441715 --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# Vault + +A Rust library for interacting with a SQLite database from multiple threads. + +Because single SQLite connections aren't built to be threadsafe, the easiest way +to interact with a SQLite database from multiple threads or async tasks is to +spawn a separate thread for the connection. This thread receives commands or +requests via a channel and returns the results to the requester. This way, all +operations done on the database are automatically serialized.