mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Link to datasette-saved-queries plugin, closes #852
This commit is contained in:
parent
64cc536b89
commit
55a6ffb93c
3 changed files with 11 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue