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
|
|
@ -452,6 +452,11 @@ def uninstall(packages, yes):
|
|||
is_flag=True,
|
||||
help="Enable cross-database joins using the /_memory database",
|
||||
)
|
||||
@click.option(
|
||||
"--nolock",
|
||||
is_flag=True,
|
||||
help="Ignore locking, open locked files in read-only mode",
|
||||
)
|
||||
@click.option(
|
||||
"--ssl-keyfile",
|
||||
help="SSL key file",
|
||||
|
|
@ -486,6 +491,7 @@ def serve(
|
|||
open_browser,
|
||||
create,
|
||||
crossdb,
|
||||
nolock,
|
||||
ssl_keyfile,
|
||||
ssl_certfile,
|
||||
return_instance=False,
|
||||
|
|
@ -545,6 +551,7 @@ def serve(
|
|||
version_note=version_note,
|
||||
pdb=pdb,
|
||||
crossdb=crossdb,
|
||||
nolock=nolock,
|
||||
)
|
||||
|
||||
# if files is a single directory, use that as config_dir=
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue