home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

6 rows where issue = 1468709531 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 6

issue 1

  • Interactive demo of Datasette 1.0 write APIs · 6 ✖

author_association 1

  • OWNER 6
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
1331479606 https://github.com/simonw/datasette/issues/1915#issuecomment-1331479606 https://api.github.com/repos/simonw/datasette/issues/1915 IC_kwDOBm6k_c5PXMQ2 simonw 9599 2022-11-30T00:09:06Z 2022-11-30T00:09:06Z OWNER

One last feature: I want to show an indication on the table page that the table has X seconds left to live.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Interactive demo of Datasette 1.0 write APIs 1468709531  
1331479328 https://github.com/simonw/datasette/issues/1915#issuecomment-1331479328 https://api.github.com/repos/simonw/datasette/issues/1915 IC_kwDOBm6k_c5PXMMg simonw 9599 2022-11-30T00:08:41Z 2022-11-30T00:08:41Z OWNER

Five minute has now passed and https://latest.datasette.io/ephemeral/new_table is gone.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Interactive demo of Datasette 1.0 write APIs 1468709531  
1331476246 https://github.com/simonw/datasette/issues/1915#issuecomment-1331476246 https://api.github.com/repos/simonw/datasette/issues/1915 IC_kwDOBm6k_c5PXLcW simonw 9599 2022-11-30T00:04:35Z 2022-11-30T00:08:24Z OWNER

The new https://github.com/simonw/datasette-ephemeral-tables plugin is live now: https://latest.datasette.io/ephemeral - you have to navigate through https://latest.datasette.io/login-as-root first

It work! I created a table using https://latest.datasette.io/-/api#path=%2Fephemeral%2F-%2Fcreate&json=%7B%0A++%22table%22%3A+%22new_table%22%2C%0A++%22columns%22%3A+%5B%0A++++%7B%0A++++++%22name%22%3A+%22id%22%2C%0A++++++%22type%22%3A+%22integer%22%0A++++%7D%2C%0A++++%7B%0A++++++%22name%22%3A+%22name%22%2C%0A++++++%22type%22%3A+%22text%22%0A++++%7D%0A++%5D%2C%0A++%22pk%22%3A+%22id%22%0A%7D&method=POST

The table should vanish in a few minutes.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Interactive demo of Datasette 1.0 write APIs 1468709531  
1331478611 https://github.com/simonw/datasette/issues/1915#issuecomment-1331478611 https://api.github.com/repos/simonw/datasette/issues/1915 IC_kwDOBm6k_c5PXMBT simonw 9599 2022-11-30T00:07:37Z 2022-11-30T00:07:37Z OWNER

Then I created an API token at https://latest.datasette.io/-/create-token and ran this:

curl -XPOST 'https://latest.datasette.io/ephemeral/new_table/-/insert' \ -H 'Authorization: Bearer xxx' \ -H 'Content-Type: application/json' \ -d '{"row": {"name": "NAME"}}' And it inserted a row into https://latest.datasette.io/ephemeral/new_table

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Interactive demo of Datasette 1.0 write APIs 1468709531  
1331432223 https://github.com/simonw/datasette/issues/1915#issuecomment-1331432223 https://api.github.com/repos/simonw/datasette/issues/1915 IC_kwDOBm6k_c5PXAsf simonw 9599 2022-11-29T23:06:17Z 2022-11-29T23:06:17Z OWNER

To (slightly) discourage abuse I'm going to make the demo database only visible to the root user - so people can't create tables with rude names and have them show to the public on https://latest.datasette.io/

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Interactive demo of Datasette 1.0 write APIs 1468709531  
1331331082 https://github.com/simonw/datasette/issues/1915#issuecomment-1331331082 https://api.github.com/repos/simonw/datasette/issues/1915 IC_kwDOBm6k_c5PWoAK simonw 9599 2022-11-29T21:24:59Z 2022-11-29T21:34:53Z OWNER

Maybe a plugin called datasette-temporary-tables or datasette-demo-tables or datasette-demo-database.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Interactive demo of Datasette 1.0 write APIs 1468709531  

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