From 99fba0fad35ab81f39e68568ea4afa94b88ab232 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sun, 28 Jun 2020 12:37:50 -0700 Subject: [PATCH] Link to datasette-init plugin hook, refs #834 --- docs/ecosystem.rst | 5 +++++ docs/plugin_hooks.rst | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/ecosystem.rst b/docs/ecosystem.rst index 7c8959dd..72a2845e 100644 --- a/docs/ecosystem.rst +++ b/docs/ecosystem.rst @@ -107,6 +107,11 @@ datasette-json-html `datasette-json-html `__ renders HTML in Datasette's table view driven by JSON returned from your SQL queries. This provides a way to embed images, links and lists of links directly in Datasette's main interface, defined using custom SQL statements. +datasette-init +-------------- + +`datasette-init `__ allows you to define tables and views in your metadata file that should be created on startup if they do not already exist. + datasette-media --------------- diff --git a/docs/plugin_hooks.rst b/docs/plugin_hooks.rst index ccd4ca3d..de10a551 100644 --- a/docs/plugin_hooks.rst +++ b/docs/plugin_hooks.rst @@ -53,7 +53,7 @@ arguments and can be called like this:: select random_integer(1, 10); -Examples: `datasette-jellyfish `_, `datasette-jq `_, `datasette-haversine `__, `datasette-rure `__ +Examples: `datasette-jellyfish `__, `datasette-jq `__, `datasette-haversine `__, `datasette-rure `__ .. _plugin_hook_prepare_jinja2_environment: @@ -717,7 +717,7 @@ Potential use-cases: await ds.invoke_startup() # Rest of test goes here -Example: `datasette-saved-queries `__ +Examples: `datasette-saved-queries `__, `datasette-init `__ .. _plugin_hook_canned_queries: