import Database after defining hookimpl

This commit is contained in:
Alex Garcia 2023-07-22 15:48:31 -07:00
commit 80a5020e6d
2 changed files with 2 additions and 2 deletions

View file

@ -123,7 +123,7 @@ Example implementation:
import sqlite_utils
@sqlite_utils.hookimpl
def prepare_connection(self, conn):
def prepare_connection(conn):
conn.create_function(
"hello", 1, lambda name: f"Hello, {name}!"
)