mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
RowView.data() no longer uses inspect refs #420
This commit is contained in:
parent
c882e9262f
commit
f23120a964
1 changed files with 3 additions and 3 deletions
|
|
@ -803,9 +803,9 @@ class RowView(RowTableShared):
|
|||
|
||||
async def data(self, request, database, hash, table, pk_path, default_labels=False):
|
||||
pk_values = urlsafe_components(pk_path)
|
||||
info = self.ds.inspect()[database]
|
||||
table_info = info["tables"].get(table) or {}
|
||||
pks = table_info.get("primary_keys") or []
|
||||
pks = await self.ds.execute_against_connection_in_thread(
|
||||
database, lambda conn: detect_primary_keys(conn, table)
|
||||
)
|
||||
use_rowid = not pks
|
||||
select = "*"
|
||||
if use_rowid:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue