home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where issue = 275089535 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 4

issue 1

  • ?_json=foo&_json=bar query string argument · 4 ✖

author_association 1

  • OWNER 4
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
392580902 https://github.com/simonw/datasette/issues/121#issuecomment-392580902 https://api.github.com/repos/simonw/datasette/issues/121 MDEyOklzc3VlQ29tbWVudDM5MjU4MDkwMg== simonw 9599 2018-05-28T18:11:51Z 2018-05-28T18:11:51Z OWNER

Implemented in 76d11eb768e2f05f593c4d37a25280c0fcdf8fd6

Documented here: http://datasette.readthedocs.io/en/latest/json_api.html#special-json-arguments

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
?_json=foo&_json=bar query string argument  275089535  
392575448 https://github.com/simonw/datasette/issues/121#issuecomment-392575448 https://api.github.com/repos/simonw/datasette/issues/121 MDEyOklzc3VlQ29tbWVudDM5MjU3NTQ0OA== simonw 9599 2018-05-28T17:33:07Z 2018-05-28T17:33:07Z OWNER

This shouldn't be a comma-separated list, it should be an argument you can pass multiple times to better match #255 and #292

Maybe ?_json=foo&_json=bar

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
?_json=foo&_json=bar query string argument  275089535  
350527283 https://github.com/simonw/datasette/issues/121#issuecomment-350527283 https://api.github.com/repos/simonw/datasette/issues/121 MDEyOklzc3VlQ29tbWVudDM1MDUyNzI4Mw== simonw 9599 2017-12-10T06:00:47Z 2017-12-10T06:00:47Z OWNER

This is also really interesting when combined with the spatialite AsGeoJSON function: http://www.gaia-gis.it/gaia-sins/spatialite-sql-4.2.0.html#p3misc

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
?_json=foo&_json=bar query string argument  275089535  
345452215 https://github.com/simonw/datasette/issues/121#issuecomment-345452215 https://api.github.com/repos/simonw/datasette/issues/121 MDEyOklzc3VlQ29tbWVudDM0NTQ1MjIxNQ== simonw 9599 2017-11-18T16:11:23Z 2017-11-18T16:11:23Z OWNER

If a column value is invalid JSON, let's return the invalid JSON as a regular string.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
?_json=foo&_json=bar query string argument  275089535  

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