home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

5 rows where "updated_at" is on date 2020-04-17 and user = 9599 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 3

  • Handle "User not found" error 3
  • Mechanism for forcing column-type, over-riding auto-detection 1
  • "twitter-to-sqlite lists" command for retrieving a user's owned lists 1

author_association 2

  • MEMBER 4
  • OWNER 1

user 1

  • simonw · 5 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
615513491 https://github.com/dogsheep/twitter-to-sqlite/issues/43#issuecomment-615513491 https://api.github.com/repos/dogsheep/twitter-to-sqlite/issues/43 MDEyOklzc3VlQ29tbWVudDYxNTUxMzQ5MQ== simonw 9599 2020-04-17T23:48:28Z 2020-04-17T23:48:28Z MEMBER

Released in 0.21.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
"twitter-to-sqlite lists" command for retrieving a user's owned lists 602176870  
615510361 https://github.com/dogsheep/twitter-to-sqlite/issues/37#issuecomment-615510361 https://api.github.com/repos/dogsheep/twitter-to-sqlite/issues/37 MDEyOklzc3VlQ29tbWVudDYxNTUxMDM2MQ== simonw 9599 2020-04-17T23:38:27Z 2020-04-17T23:38:27Z MEMBER

That's a bit tricky since I'd have to rewrite the internals of a bunch of other commands. For the moment I'll exit the script with an error but at least it will be a decent error!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Handle "User not found" error 585353598  
615509803 https://github.com/dogsheep/twitter-to-sqlite/issues/37#issuecomment-615509803 https://api.github.com/repos/dogsheep/twitter-to-sqlite/issues/37 MDEyOklzc3VlQ29tbWVudDYxNTUwOTgwMw== simonw 9599 2020-04-17T23:36:40Z 2020-04-17T23:36:40Z MEMBER

I'm going to print a warning to stderr, skip and continue - because if you have 100 screen names and only one of them is invalid you should still execute for the other 99.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Handle "User not found" error 585353598  
615509578 https://github.com/dogsheep/twitter-to-sqlite/issues/37#issuecomment-615509578 https://api.github.com/repos/dogsheep/twitter-to-sqlite/issues/37 MDEyOklzc3VlQ29tbWVudDYxNTUwOTU3OA== simonw 9599 2020-04-17T23:36:00Z 2020-04-17T23:36:00Z MEMBER

$ twitter-to-sqlite user-timeline doggo.db doggoenthuonetuh Traceback (most recent call last): ... File "/Users/simonw/Dropbox/Development/twitter-to-sqlite/twitter_to_sqlite/utils.py", line 272, in transform_user user["created_at"] = parser.parse(user["created_at"]) KeyError: 'created_at'

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Handle "User not found" error 585353598  
615372322 https://github.com/simonw/sqlite-utils/issues/100#issuecomment-615372322 https://api.github.com/repos/simonw/sqlite-utils/issues/100 MDEyOklzc3VlQ29tbWVudDYxNTM3MjMyMg== simonw 9599 2020-04-17T17:31:42Z 2020-04-17T17:31:42Z OWNER

I'm going with columns={"score": int}

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Mechanism for forcing column-type, over-riding auto-detection 601358649  

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 911.611ms · About: github-to-sqlite