prepare_connection() now takes datasette and database args, refs #678

This commit is contained in:
Simon Willison 2020-02-21 17:32:40 -08:00
commit 6303ea5048
5 changed files with 16 additions and 8 deletions

View file

@ -11,7 +11,7 @@ def asgi_wrapper(datasette):
@hookspec
def prepare_connection(conn):
def prepare_connection(conn, database, datasette):
"Modify SQLite connection in some way e.g. register custom SQL functions"