home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

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

  • Implement new /content.json?sql=... · 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
1668798261 https://github.com/simonw/datasette/issues/2111#issuecomment-1668798261 https://api.github.com/repos/simonw/datasette/issues/2111 IC_kwDOBm6k_c5jd9c1 simonw 9599 2023-08-08T02:00:22Z 2023-08-08T02:00:37Z OWNER

Shipped: https://latest.datasette.io/_memory.json?sql=select+sqlite_version() json { "rows": [ { "sqlite_version()": "3.34.1" } ], "columns": [ "sqlite_version()" ], "ok": true, "truncated": false }

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Implement new /content.json?sql=... 1822937426  
1652407208 https://github.com/simonw/datasette/issues/2111#issuecomment-1652407208 https://api.github.com/repos/simonw/datasette/issues/2111 IC_kwDOBm6k_c5ifbuo simonw 9599 2023-07-26T19:54:20Z 2023-07-26T19:54:20Z OWNER

I implemented /content and /content.json but I left /content?sql=... as this:

https://github.com/simonw/datasette/blob/2e40a506ad45b44fd7642474f630a31ef18b5911/datasette/views/database.py#L220-L221

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Implement new /content.json?sql=... 1822937426  
1652354606 https://github.com/simonw/datasette/issues/2111#issuecomment-1652354606 https://api.github.com/repos/simonw/datasette/issues/2111 IC_kwDOBm6k_c5ifO4u simonw 9599 2023-07-26T19:16:35Z 2023-07-26T19:17:45Z OWNER

I just noticed that this URL: https://latest.datasette.io/fixtures.csv

Returns a 500 error right now!

It's fine with a ?sql= query: https://latest.datasette.io/fixtures.csv?sql=select+*+from+facetable

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Implement new /content.json?sql=... 1822937426  
1652318269 https://github.com/simonw/datasette/issues/2111#issuecomment-1652318269 https://api.github.com/repos/simonw/datasette/issues/2111 IC_kwDOBm6k_c5ifGA9 simonw 9599 2023-07-26T18:45:23Z 2023-07-26T18:45:23Z OWNER

To avoid confusion I'll start by having /content return a HTML "TODO: implement this" message.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Implement new /content.json?sql=... 1822937426  

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