Docs for IndexView, TableView, RowView, closes #299

Also removed xfail from test_view_classes_are_documented, so any future *View
classes that are added without documentation will cause the tests to fail.
This commit is contained in:
Simon Willison 2018-07-27 21:21:42 -07:00
commit 788a542d3c
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52
6 changed files with 95 additions and 2 deletions

View file

@ -9,9 +9,12 @@ worry about SQL injection attacks.
The easiest way to execute custom SQL against Datasette is through the web UI.
The database index page includes a SQL editor that lets you run any SELECT query
you like. You can also construct queries using the filter interface on the
tables page, then click "View and edit SQL" to open that query in the cgustom
tables page, then click "View and edit SQL" to open that query in the custom
SQL editor.
Note that this interface is only available if the :ref:`config_allow_sql` option
has not been disabled.
Any Datasette SQL query is reflected in the URL of the page, allowing you to
bookmark them, share them with others and navigate through previous queries
using your browser back button.