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
|
|
@ -134,6 +134,9 @@ async def inspect_(files, sqlite_extensions):
|
|||
app = Datasette([], immutables=files, sqlite_extensions=sqlite_extensions)
|
||||
data = {}
|
||||
for name, database in app.databases.items():
|
||||
if name == "_schemas":
|
||||
# Don't include the in-memory _schemas database
|
||||
continue
|
||||
counts = await database.table_counts(limit=3600 * 1000)
|
||||
data[name] = {
|
||||
"hash": database.hash,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue