mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
allow_sql config option to disable custom SQL, closes #284
This commit is contained in:
parent
50920cfe3d
commit
f722b0a730
7 changed files with 53 additions and 7 deletions
|
|
@ -80,6 +80,9 @@ CONFIG_OPTIONS = (
|
|||
ConfigOption("suggest_facets", True, """
|
||||
Calculate and display suggested facets
|
||||
""".strip()),
|
||||
ConfigOption("allow_sql", True, """
|
||||
Allow arbitrary SQL queries via ?sql= parameter
|
||||
""".strip()),
|
||||
)
|
||||
DEFAULT_CONFIG = {
|
||||
option.name: option.default
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue