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
|
|
@ -58,7 +58,7 @@ class Database:
|
|||
conn = getattr(connections, self.name, None)
|
||||
if not conn:
|
||||
conn = self.connect()
|
||||
self.ds.prepare_connection(conn)
|
||||
self.ds.prepare_connection(conn, self.name)
|
||||
setattr(connections, self.name, conn)
|
||||
return fn(conn)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue