mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
In-memory _schemas database tracking schemas of attached tables, closes #1150
This commit is contained in:
parent
5e9895c67f
commit
ebc7aa287c
8 changed files with 279 additions and 6 deletions
|
|
@ -115,6 +115,8 @@ class BaseView:
|
|||
return Response.text("Method not allowed", status=405)
|
||||
|
||||
async def dispatch_request(self, request, *args, **kwargs):
|
||||
if self.ds:
|
||||
await self.ds.refresh_schemas()
|
||||
handler = getattr(self, request.method.lower(), None)
|
||||
return await handler(request, *args, **kwargs)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue