mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
prepare_connection() now takes datasette and database args, refs #678
This commit is contained in:
parent
d3f2fade88
commit
6303ea5048
5 changed files with 16 additions and 8 deletions
|
|
@ -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"
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue