mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Add new entrypoint option to --load-extensions. (#1789)
Thanks, @asg017
This commit is contained in:
parent
663ac431fe
commit
1d64c9a8da
6 changed files with 140 additions and 2 deletions
|
|
@ -21,6 +21,7 @@ from .app import (
|
|||
pm,
|
||||
)
|
||||
from .utils import (
|
||||
LoadExtension,
|
||||
StartupError,
|
||||
check_connection,
|
||||
find_spatialite,
|
||||
|
|
@ -128,9 +129,10 @@ def sqlite_extensions(fn):
|
|||
return click.option(
|
||||
"sqlite_extensions",
|
||||
"--load-extension",
|
||||
type=LoadExtension(),
|
||||
envvar="SQLITE_EXTENSIONS",
|
||||
multiple=True,
|
||||
help="Path to a SQLite extension to load",
|
||||
help="Path to a SQLite extension to load, and optional entrypoint",
|
||||
)(fn)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue