home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

5 rows where issue = 684961449 sorted by updated_at descending

✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 2

  • simonw 4
  • mhkeller 1

author_association 2

  • OWNER 4
  • NONE 1

issue 1

  • Try out CodeMirror SQL hints · 5 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
1791911093 https://github.com/simonw/datasette/issues/949#issuecomment-1791911093 https://api.github.com/repos/simonw/datasette/issues/949 IC_kwDOBm6k_c5qzmS1 simonw 9599 2023-11-03T05:28:09Z 2023-11-03T05:28:58Z OWNER

Datasette is using that now, see: - #1893

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Try out CodeMirror SQL hints 684961449  
1791571572 https://github.com/simonw/datasette/issues/949#issuecomment-1791571572 https://api.github.com/repos/simonw/datasette/issues/949 IC_kwDOBm6k_c5qyTZ0 mhkeller 498744 2023-11-02T21:36:24Z 2023-11-02T21:36:24Z NONE

FWIW, code mirror 6 now has this standard although if you want table-specific suggestions, you'd have to handle parsing out which table the user is querying yourself.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Try out CodeMirror SQL hints 684961449  
720021029 https://github.com/simonw/datasette/issues/949#issuecomment-720021029 https://api.github.com/repos/simonw/datasette/issues/949 MDEyOklzc3VlQ29tbWVudDcyMDAyMTAyOQ== simonw 9599 2020-11-01T03:29:48Z 2020-11-01T03:29:48Z OWNER

I'm not going to do any more work on this - SQL isn't an auto-complete friendly enough language.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Try out CodeMirror SQL hints 684961449  
679367931 https://github.com/simonw/datasette/issues/949#issuecomment-679367931 https://api.github.com/repos/simonw/datasette/issues/949 MDEyOklzc3VlQ29tbWVudDY3OTM2NzkzMQ== simonw 9599 2020-08-24T21:09:50Z 2020-08-24T21:09:50Z OWNER

I'm attracted to this because of how good GraphiQL is for auto-completing queries. But I realize there's a problem here: GraphQL is designed to be autocomplete-friendly, but SQL is not. If you type select and it doesn't know what's going in the from clause it can't give you good column autocomplete, for example.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Try out CodeMirror SQL hints 684961449  
679363710 https://github.com/simonw/datasette/issues/949#issuecomment-679363710 https://api.github.com/repos/simonw/datasette/issues/949 MDEyOklzc3VlQ29tbWVudDY3OTM2MzcxMA== simonw 9599 2020-08-24T21:00:43Z 2020-08-24T21:00:43Z OWNER

I think this requires three extra files from https://github.com/codemirror/CodeMirror/tree/5.57.0/addon/hint

  • show-hint.css
  • show-hint.js
  • sql-hint.js
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Try out CodeMirror SQL hints 684961449  

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 20.452ms · About: github-to-sqlite
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows