home / github

Menu
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where issue = 435531034

✎ View and edit SQL

This data as json, CSV (advanced)

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

id ▼ html_url issue_url node_id user created_at updated_at author_association body reactions issue performed_via_github_app
485269362 https://github.com/simonw/datasette/issues/435#issuecomment-485269362 https://api.github.com/repos/simonw/datasette/issues/435 MDEyOklzc3VlQ29tbWVudDQ4NTI2OTM2Mg== simonw 9599 2019-04-21T17:38:05Z 2019-04-21T17:38:05Z OWNER I built a first version of this in https://github.com/simonw/datasette/commit/7d01ca34a10b5f8a993859cfd05790eb2870b94e which dumped SQL queries out to the terminal logs. {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Tracing support for seeing what SQL queries were executed 435531034  
485270230 https://github.com/simonw/datasette/issues/435#issuecomment-485270230 https://api.github.com/repos/simonw/datasette/issues/435 MDEyOklzc3VlQ29tbWVudDQ4NTI3MDIzMA== simonw 9599 2019-04-21T17:52:03Z 2019-04-21T17:52:03Z OWNER Demos: * https://latest.datasette.io/fixtures/facetable?_trace=1 - SQL dumped at bottom of HTML * https://latest.datasette.io/fixtures/facetable.json?_trace=1 - SQL in a "_traces" key {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Tracing support for seeing what SQL queries were executed 435531034  
491534162 https://github.com/simonw/datasette/issues/435#issuecomment-491534162 https://api.github.com/repos/simonw/datasette/issues/435 MDEyOklzc3VlQ29tbWVudDQ5MTUzNDE2Mg== simonw 9599 2019-05-11T18:33:02Z 2019-05-11T18:36:33Z OWNER I don't like the shape of the JSON: ``` "_traces": { "num_traces": 20, "traces": { "duration": 0.015190839767456055, "queries": [ [ "sql", [ "fixtures", "select 1 from sqlite_master where type='table' and name=?", [ "facetable.json" ] ], 1557599406.7231224, 1557599406.723611, 0.4887580871582031 ], [ ``` I want this instead: ``` "_traces": { "num_traces": 20, "sum_duration_ms": 0.015190839767456055, "traces": [ { "type": "sql", "database": "fixtures", "sql": "select 1 from sqlite_master where type='table' and name=?", "args": ["facetable.json"], "start": 1557599406.7231224, "end": 1557599406.723611, "duration_ms": 0.4887580871582031 } {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Tracing support for seeing what SQL queries were executed 435531034  
491541721 https://github.com/simonw/datasette/issues/435#issuecomment-491541721 https://api.github.com/repos/simonw/datasette/issues/435 MDEyOklzc3VlQ29tbWVudDQ5MTU0MTcyMQ== simonw 9599 2019-05-11T20:32:21Z 2019-05-11T20:32:21Z OWNER Demo of the finished feature: https://latest.datasette.io/fixtures/facetable?_trace=1 <img width="1294" alt="image" src="https://user-images.githubusercontent.com/9599/57574617-2ebd9600-73f1-11e9-9a1a-458f1b7d0d66.png"> {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Tracing support for seeing what SQL queries were executed 435531034  

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 127.626ms · About: simonw/datasette-graphql