mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-13 03:54:23 +02:00
import Database after defining hookimpl
This commit is contained in:
parent
ae973e794b
commit
80a5020e6d
2 changed files with 2 additions and 2 deletions
|
|
@ -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}!"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue