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}!"
)

View file

@ -1,6 +1,6 @@
from .db import Database
from .utils import suggest_column_types
from .hookspecs import hookimpl
from .hookspecs import hookspec
from .db import Database
__all__ = ["Database", "suggest_column_types", "hookimpl", "hookspec"]