home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 1452457263 and "updated_at" is on date 2022-11-16 sorted by updated_at descending

✖
✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 1

  • simonw 3

issue 1

  • Serve schema JSON to the SQL editor to enable autocomplete · 3 ✖

author_association 1

  • OWNER 3
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
1317840727 https://github.com/simonw/datasette/issues/1897#issuecomment-1317840727 https://api.github.com/repos/simonw/datasette/issues/1897 IC_kwDOBm6k_c5OjKdX simonw 9599 2022-11-16T23:57:52Z 2022-11-16T23:57:52Z OWNER

In terms of permissions: if you have execute-sql permission for a database then it's OK for you to see the table columns for that database.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Serve schema JSON to the SQL editor to enable autocomplete 1452457263  
1317839781 https://github.com/simonw/datasette/issues/1897#issuecomment-1317839781 https://api.github.com/repos/simonw/datasette/issues/1897 IC_kwDOBm6k_c5OjKOl simonw 9599 2022-11-16T23:56:47Z 2022-11-16T23:56:47Z OWNER

I'm going to call this table_columns in the template context (because schema might mean CREATE TABLE ....

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Serve schema JSON to the SQL editor to enable autocomplete 1452457263  
1317838892 https://github.com/simonw/datasette/issues/1897#issuecomment-1317838892 https://api.github.com/repos/simonw/datasette/issues/1897 IC_kwDOBm6k_c5OjKAs simonw 9599 2022-11-16T23:55:42Z 2022-11-16T23:55:42Z OWNER

Here's where the schema is hard-coded at the moment: https://github.com/simonw/datasette/blob/00e233d7a7f6443cb95fb5227c23580c48551cad/datasette/templates/_codemirror_foot.html#L2-L7

I figured out how to extract that data from the _internal table in this comment: https://github.com/simonw/datasette/pull/1893#issuecomment-1317475720

Although that used JSON functions which may (in a real edge-case) not be available in the version of SQLite that Datasette is running on, so probably going to use a regular SQL query and then assemble the JSON separately.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Serve schema JSON to the SQL editor to enable autocomplete 1452457263  

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
, [performed_via_github_app] TEXT);
CREATE INDEX [idx_issue_comments_issue]
                ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
                ON [issue_comments] ([user]);
Powered by Datasette · Queries took 22.227ms · About: github-to-sqlite
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows