Skip to content

Commit e337a88

Browse files
committed
Tweaks to prepare_connection() example in docs, refs #574
1 parent 374a816 commit e337a88

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

docs/plugins.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,12 @@ aggregates and collations. For example:
126126
127127
.. code-block:: python
128128
129-
import click
130129
import sqlite_utils
131130
132131
@sqlite_utils.hookimpl
133132
def prepare_connection(conn):
134133
conn.create_function(
135-
"hello", 1, lambda name: f"Hello, {name}!"
134+
"hello", 1, lambda name: f"Hello, {name}!"
136135
)
137136
138137
This registers a SQL function called ``hello`` which takes a single

0 commit comments

Comments
 (0)