mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
--nolock mode to ignore locked files, closes #1744
This commit is contained in:
parent
a5acfff4bd
commit
3508bf7875
5 changed files with 15 additions and 1 deletions
|
|
@ -89,6 +89,8 @@ class Database:
|
|||
# mode=ro or immutable=1?
|
||||
if self.is_mutable:
|
||||
qs = "?mode=ro"
|
||||
if self.ds.nolock:
|
||||
qs += "&nolock=1"
|
||||
else:
|
||||
qs = "?immutable=1"
|
||||
assert not (write and not self.is_mutable)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue