Link to datasette-saved-queries plugin, closes #852

This commit is contained in:
Simon Willison 2020-06-19 20:08:30 -07:00
commit 55a6ffb93c
3 changed files with 11 additions and 3 deletions

View file

@ -1028,9 +1028,11 @@ Or you can return an async function which will be awaited on startup. Use this o
Potential use-cases:
* Run some initialization code for the plugin
* Create database tables that a plugin needs
* Create database tables that a plugin needs on startup
* Validate the metadata configuration for a plugin on startup, and raise an error if it is invalid
Example: `datasette-saved-queries <https://github.com/simonw/datasette-saved-queries>`__
.. _plugin_hook_canned_queries:
canned_queries(datasette, database, actor)
@ -1098,6 +1100,8 @@ The actor parameter can be used to include the currently authenticated actor in
} for result in results}
return inner
Example: `datasette-saved-queries <https://github.com/simonw/datasette-saved-queries>`__
.. _plugin_hook_actor_from_request:
actor_from_request(datasette, request)