home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

12 rows where "created_at" is on date 2017-11-12 sorted by updated_at descending

✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

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

issue 9

  • Homepage UI for editing metadata file 2
  • Implement a better database index page 2
  • Support for title/source/license metadata 2
  • Endpoint that returns SQL ready to be piped into DB 1
  • Create neat example database 1
  • Ship a Docker image of the whole thing 1
  • Re-implement ?sql= mode 1
  • Show table SQL on table page 1
  • Enforce pagination (or at least limits) for arbitrary custom SQL 1

user 1

  • simonw 12

author_association 1

  • OWNER 12
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
343769692 https://github.com/simonw/datasette/issues/57#issuecomment-343769692 https://api.github.com/repos/simonw/datasette/issues/57 MDEyOklzc3VlQ29tbWVudDM0Mzc2OTY5Mg== simonw 9599 2017-11-12T21:32:36Z 2017-11-12T21:32:36Z OWNER

I have created a Docker Hub public repository for this: https://hub.docker.com/r/simonwillison/datasette/

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Ship a Docker image of the whole thing 273127694  
343753999 https://github.com/simonw/datasette/issues/68#issuecomment-343753999 https://api.github.com/repos/simonw/datasette/issues/68 MDEyOklzc3VlQ29tbWVudDM0Mzc1Mzk5OQ== simonw 9599 2017-11-12T17:45:21Z 2017-11-12T19:38:33Z OWNER

For initial launch, I could just support this as some optional command line arguments you pass to the publish command:

datasette publish data.db --title="Title" --source="url"
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Support for title/source/license metadata 273247186  
343754058 https://github.com/simonw/datasette/issues/68#issuecomment-343754058 https://api.github.com/repos/simonw/datasette/issues/68 MDEyOklzc3VlQ29tbWVudDM0Mzc1NDA1OA== simonw 9599 2017-11-12T17:46:13Z 2017-11-12T17:46:13Z OWNER

I’m going to store this stuff in a file called metadata.json and move the existing automatically generated metadata to a file called build.json

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Support for title/source/license metadata 273247186  
343752683 https://github.com/simonw/datasette/issues/66#issuecomment-343752683 https://api.github.com/repos/simonw/datasette/issues/66 MDEyOklzc3VlQ29tbWVudDM0Mzc1MjY4Mw== simonw 9599 2017-11-12T17:24:05Z 2017-11-12T17:24:21Z OWNER

Maybe SQL views should have their own Sanic view class (ViewView is kinda funny), subclassed from TableView?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Show table SQL on table page 273191806  
343752579 https://github.com/simonw/datasette/issues/69#issuecomment-343752579 https://api.github.com/repos/simonw/datasette/issues/69 MDEyOklzc3VlQ29tbWVudDM0Mzc1MjU3OQ== simonw 9599 2017-11-12T17:22:39Z 2017-11-12T17:22:39Z OWNER

By default I'll allow LIMIT and OFFSET up to a maximum of X (where X is let's say 50,000 to start with, but can be custom configured to a larger number or set to None for no limit).

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Enforce pagination (or at least limits) for arbitrary custom SQL 273248366  
343752404 https://github.com/simonw/datasette/issues/42#issuecomment-343752404 https://api.github.com/repos/simonw/datasette/issues/42 MDEyOklzc3VlQ29tbWVudDM0Mzc1MjQwNA== simonw 9599 2017-11-12T17:20:10Z 2017-11-12T17:20:10Z OWNER

Re-opening this - I've decided to bring back this concept, see #68

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Homepage UI for editing metadata file 268591332  
343715915 https://github.com/simonw/datasette/issues/25#issuecomment-343715915 https://api.github.com/repos/simonw/datasette/issues/25 MDEyOklzc3VlQ29tbWVudDM0MzcxNTkxNQ== simonw 9599 2017-11-12T06:08:28Z 2017-11-12T06:08:28Z OWNER
con = sqlite3.connect('existing_db.db')
with open('dump.sql', 'w') as f:
    for line in con.iterdump():
        f.write('%s\n' % line)
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Endpoint that returns SQL ready to be piped into DB 267857622  
343709217 https://github.com/simonw/datasette/issues/65#issuecomment-343709217 https://api.github.com/repos/simonw/datasette/issues/65 MDEyOklzc3VlQ29tbWVudDM0MzcwOTIxNw== simonw 9599 2017-11-12T02:36:37Z 2017-11-12T02:36:37Z OWNER

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Re-implement ?sql= mode 273191608  
343708447 https://github.com/simonw/datasette/issues/42#issuecomment-343708447 https://api.github.com/repos/simonw/datasette/issues/42 MDEyOklzc3VlQ29tbWVudDM0MzcwODQ0Nw== simonw 9599 2017-11-12T02:12:15Z 2017-11-12T02:12:15Z OWNER

I ditched the metadata file concept.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Homepage UI for editing metadata file 268591332  
343707676 https://github.com/simonw/datasette/issues/53#issuecomment-343707676 https://api.github.com/repos/simonw/datasette/issues/53 MDEyOklzc3VlQ29tbWVudDM0MzcwNzY3Ng== simonw 9599 2017-11-12T01:49:07Z 2017-11-12T01:49:07Z OWNER

Here's the new design:

Also lists views at the bottom (refs #54):

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Implement a better database index page 273054652  
343707624 https://github.com/simonw/datasette/issues/53#issuecomment-343707624 https://api.github.com/repos/simonw/datasette/issues/53 MDEyOklzc3VlQ29tbWVudDM0MzcwNzYyNA== simonw 9599 2017-11-12T01:47:45Z 2017-11-12T01:47:45Z OWNER

Split the SQL thing out into #65

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Implement a better database index page 273054652  
343705966 https://github.com/simonw/datasette/issues/47#issuecomment-343705966 https://api.github.com/repos/simonw/datasette/issues/47 MDEyOklzc3VlQ29tbWVudDM0MzcwNTk2Ng== simonw 9599 2017-11-12T01:00:20Z 2017-11-12T01:00:20Z OWNER

https://github.com/fivethirtyeight/data has a ton of CSVs

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Create neat example database 271831408  

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