Fixed prepare_connection heading

This commit is contained in:
Simon Willison 2023-07-22 15:51:08 -07:00 committed by GitHub
commit f2e2700477
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,8 +107,10 @@ Example implementation:
"Say hello world"
click.echo("Hello world!")
prepare_connection(conncl)
~~~~~~~~~~~~~~~~~~~~~~
.. _plugins_hooks_prepare_connection:
prepare_connection(conn)
~~~~~~~~~~~~~~~~~~~~~~~~
This hook is called when a new SQLite database connection is created. You can
use it to `register custom SQL functions <https://docs.python.org/2/library/sqlite3.html#sqlite3.Connection.create_function>`_,