Add new entrypoint option to --load-extensions. (#1789)

Thanks, @asg017
This commit is contained in:
Alex Garcia 2022-08-23 11:34:30 -07:00 committed by GitHub
commit 1d64c9a8da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 140 additions and 2 deletions

View file

@ -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)