mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-27 20:34:12 +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
|
import sqlite_utils
|
||||||
|
|
||||||
@sqlite_utils.hookimpl
|
@sqlite_utils.hookimpl
|
||||||
def prepare_connection(self, conn):
|
def prepare_connection(conn):
|
||||||
conn.create_function(
|
conn.create_function(
|
||||||
"hello", 1, lambda name: f"Hello, {name}!"
|
"hello", 1, lambda name: f"Hello, {name}!"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
from .db import Database
|
|
||||||
from .utils import suggest_column_types
|
from .utils import suggest_column_types
|
||||||
from .hookspecs import hookimpl
|
from .hookspecs import hookimpl
|
||||||
from .hookspecs import hookspec
|
from .hookspecs import hookspec
|
||||||
|
from .db import Database
|
||||||
|
|
||||||
__all__ = ["Database", "suggest_column_types", "hookimpl", "hookspec"]
|
__all__ = ["Database", "suggest_column_types", "hookimpl", "hookspec"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue