home / docs / sections

Menu

sections: settings:setting-default-allow-sql

This data as json

id page ref title content breadcrumbs references
settings:setting-default-allow-sql settings setting-default-allow-sql default_allow_sql Should users be able to execute arbitrary SQL queries by default? Setting this to off causes permission checks for execute-sql to fail by default. This setting controls the ability to submit arbitrary SQL. It does not disable structured table-browsing features that use SQL generated by Datasette, such as sorting, column filters and Facets . Use allow_facet to control whether users can request facets. datasette mydatabase.db --setting default_allow_sql off Another way to achieve this is to add "allow_sql": false to your datasette.yaml file, as described in Controlling the ability to execute arbitrary SQL . This setting offers a more convenient way to do this. ["Settings", "Settings"] []
Powered by Datasette · Queries took 3.194ms