Skip to content

Commit aa39cc1

Browse files
committed
docs: explain multithreading safety
1 parent e476ce2 commit aa39cc1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,3 +214,7 @@ with \
214214
for row in rows:
215215
print(row)
216216
```
217+
218+
### Multithreading
219+
220+
It is safe for multiple threads to call the same `query` function. Under the hood, each use of `query` uses a separate SQLite "connection" to the database combined with the`SQLITE_OPEN_NOMUTEX` flag, which makes this safe while not locking unnecessarily.

0 commit comments

Comments
 (0)