home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

5 rows where issue = 601330277 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 5

issue 1

  • Repos have a big blob of JSON in the organization column · 5 ✖

author_association 1

  • MEMBER 5
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
615519409 https://github.com/dogsheep/github-to-sqlite/issues/27#issuecomment-615519409 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/27 MDEyOklzc3VlQ29tbWVudDYxNTUxOTQwOQ== simonw 9599 2020-04-18T00:19:16Z 2020-04-18T00:19:16Z MEMBER

$ github-to-sqlite repos b.db dogsheep $ sqlite3 b.db '.schema repos' CREATE TABLE [repos] ( [id] INTEGER PRIMARY KEY, ... [permissions] TEXT, [organization] INTEGER REFERENCES [users]([id]), FOREIGN KEY(license) REFERENCES licenses(key) );

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Repos have a big blob of JSON in the organization column 601330277  
615518606 https://github.com/dogsheep/github-to-sqlite/issues/27#issuecomment-615518606 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/27 MDEyOklzc3VlQ29tbWVudDYxNTUxODYwNg== simonw 9599 2020-04-18T00:14:32Z 2020-04-18T00:14:32Z MEMBER

https://github.com/simonw/sqlite-utils/issues/100 is done and released in sqlite-utils 2.7.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Repos have a big blob of JSON in the organization column 601330277  
614843406 https://github.com/dogsheep/github-to-sqlite/issues/27#issuecomment-614843406 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/27 MDEyOklzc3VlQ29tbWVudDYxNDg0MzQwNg== simonw 9599 2020-04-16T19:11:53Z 2020-04-16T19:20:23Z MEMBER

This didn't quite work: the column type is incorrect, so the foreign key relationship isn't sticking:

https://github-to-sqlite.dogsheep.net/github/repos?organization=53015001

[organization] TEXT REFERENCES [users]([id]) - should be INTEGER.

The problem is that if the first repo inserted has no organization it's set to null, which sqlite-utils derives as a TEXT column.

One solution would be to create the column explicitly with a type, but this could get messy.

I think I want a new sqlite-utils feature for this instead.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Repos have a big blob of JSON in the organization column 601330277  
614831842 https://github.com/dogsheep/github-to-sqlite/issues/27#issuecomment-614831842 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/27 MDEyOklzc3VlQ29tbWVudDYxNDgzMTg0Mg== simonw 9599 2020-04-16T18:48:18Z 2020-04-16T18:48:18Z MEMBER

I'm going to make organization another foreign key to the users table just in case it IS possible (maybe with GitHub Enterprise or similar?)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Repos have a big blob of JSON in the organization column 601330277  
614831451 https://github.com/dogsheep/github-to-sqlite/issues/27#issuecomment-614831451 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/27 MDEyOklzc3VlQ29tbWVudDYxNDgzMTQ1MQ== simonw 9599 2020-04-16T18:47:25Z 2020-04-16T18:47:25Z MEMBER

Is it possible for a repo to have an owner that differs from its organization?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Repos have a big blob of JSON in the organization column 601330277  

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