From e337a88b456b4b244c4916af96bc1d8fdcf16d37 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sat, 22 Jul 2023 16:13:46 -0700 Subject: [PATCH] Tweaks to prepare_connection() example in docs, refs #574 --- docs/plugins.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/plugins.rst b/docs/plugins.rst index d8facdc..8e1a37a 100644 --- a/docs/plugins.rst +++ b/docs/plugins.rst @@ -126,13 +126,12 @@ aggregates and collations. For example: .. code-block:: python - import click import sqlite_utils @sqlite_utils.hookimpl def prepare_connection(conn): conn.create_function( - "hello", 1, lambda name: f"Hello, {name}!" + "hello", 1, lambda name: f"Hello, {name}!" ) This registers a SQL function called ``hello`` which takes a single