home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 613467382

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association pull_request body repo type active_lock_reason performed_via_github_app reactions draft state_reason
613467382 MDU6SXNzdWU2MTM0NjczODI= 761 Allow-list pragma_table_info(tablename) and similar 9599 closed 0     8 2020-05-06T16:54:14Z 2020-05-07T03:09:05Z 2020-05-06T17:18:38Z OWNER  

It would be great if pragma_table_info(tablename) was allowed to be used in queries. See also https://github.com/simonw/til/blob/master/sqlite/list-all-columns-in-a-database.md

select * from pragma_table_info(tablename); is currently disallowed for user-provided queries via a regex restriction - but could help here too.

https://github.com/simonw/datasette/blob/d349d57cdf3d577afb62bdf784af342a4d5be660/datasette/utils/init.py#L174

Originally posted by @simonw in https://github.com/simonw/datasette/issues/760#issuecomment-624729459

107914493 issue    
{
    "url": "https://api.github.com/repos/simonw/datasette/issues/761/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 8 rows from issue in issue_comments
Powered by Datasette · Queries took 1.079ms · About: github-to-sqlite