home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

6 rows where "updated_at" is on date 2020-12-13 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

issue 6

  • JavaScript plugin hooks mechanism similar to pluggy 1
  • Fallback to databases in inspect-data.json when no -i options are passed 1
  • changes to allow for compound foreign keys 1
  • sqlite-utils analyze-tables command 1
  • sqlite-utils analyze-tables command and table.analyze_column() method 1
  • "Stream all rows" is not at all obvious 1

user 3

  • simonw 4
  • frankier 1
  • nitinpaultifr 1

author_association 2

  • OWNER 4
  • NONE 2
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
744066249 https://github.com/simonw/datasette/issues/983#issuecomment-744066249 https://api.github.com/repos/simonw/datasette/issues/983 MDEyOklzc3VlQ29tbWVudDc0NDA2NjI0OQ== simonw 9599 2020-12-13T20:47:52Z 2020-12-13T20:47:52Z OWNER

@yozlet just spotted this comment. Wow that is interesting!

With the right plugin hooks on the page (see also #987) one relatively simple way to do that could be with bookmarklets - users could install bookmarklets which, when executed against a Datasette page in their browser, use the existing JavaScript plugin integration points to add all kinds of functionality.

Doing full sandboxing is certainly daunting, but it looks like Figma figured it out so TIL it's technically feasible.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
JavaScript plugin hooks mechanism similar to pluggy 712260429  
744003454 https://github.com/simonw/datasette/pull/1031#issuecomment-744003454 https://api.github.com/repos/simonw/datasette/issues/1031 MDEyOklzc3VlQ29tbWVudDc0NDAwMzQ1NA== frankier 299380 2020-12-13T12:52:56Z 2020-12-13T12:52:56Z NONE

Please let me know if there's anything I can do to help get this merged.

This is causing problems for me because it means when I build my Docker image my databases aren't considered immutable, which I would like them to be so that a download link is produced.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Fallback to databases in inspect-data.json when no -i options are passed 724369025  
743998792 https://github.com/simonw/datasette/issues/1142#issuecomment-743998792 https://api.github.com/repos/simonw/datasette/issues/1142 MDEyOklzc3VlQ29tbWVudDc0Mzk5ODc5Mg== nitinpaultifr 6622733 2020-12-13T12:14:06Z 2020-12-13T12:14:06Z NONE

Agreed, it would definitely provide better controls. However, I do feel it makes for a bit of inconsistent UX for the 'Advanced export' section, with links to download for JSON, checkboxes and radio buttons + button to download for CSV. Do you think this example makes the UX a bit nicer/consistent?

I could give it a try if you'd like but I've never contributed to an actual project!

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
"Stream all rows" is not at all obvious 763361458  
743966801 https://github.com/simonw/sqlite-utils/issues/207#issuecomment-743966801 https://api.github.com/repos/simonw/sqlite-utils/issues/207 MDEyOklzc3VlQ29tbWVudDc0Mzk2NjgwMQ== simonw 9599 2020-12-13T07:25:23Z 2020-12-13T07:25:23Z OWNER

CLI documentation: https://sqlite-utils.readthedocs.io/en/latest/cli.html#analyzing-tables

Python library documentation: https://sqlite-utils.readthedocs.io/en/latest/python-api.html#analyzing-a-column

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
sqlite-utils analyze-tables command 763283616  
743966289 https://github.com/simonw/sqlite-utils/pull/203#issuecomment-743966289 https://api.github.com/repos/simonw/sqlite-utils/issues/203 MDEyOklzc3VlQ29tbWVudDc0Mzk2NjI4OQ== simonw 9599 2020-12-13T07:20:51Z 2020-12-13T07:20:51Z OWNER

Sorry for not reviewing this yet! I'll try to carve out time to look at it in the next few days.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
changes to allow for compound foreign keys 743384829  
743956666 https://github.com/simonw/sqlite-utils/pull/208#issuecomment-743956666 https://api.github.com/repos/simonw/sqlite-utils/issues/208 MDEyOklzc3VlQ29tbWVudDc0Mzk1NjY2Ng== simonw 9599 2020-12-13T05:44:49Z 2020-12-13T05:44:49Z OWNER

Example output: ``` % sqlite-utils analyze-tables github.db tags
tags.repo: (1/3)

Total rows: 261 Null rows: 0 Blank rows: 0

Distinct values: 14

Most common: 88: 107914493 75: 140912432 27: 206156866 21: 207052882 17: 197431109 8: 197882382 5: 256834907 5: 205429375 4: 248903544 3: 206202864

Least common: 1: 209590345 2: 206649770 2: 303218369 3: 206202864 3: 213286752 4: 248903544 5: 205429375 5: 256834907 8: 197882382 17: 197431109

tags.name: (2/3)

Total rows: 261 Null rows: 0 Blank rows: 0

Distinct values: 175

Most common: 10: 0.2 9: 0.1 7: 0.3 6: 0.4 5: 0.7 5: 0.5 5: 0.1a 4: 0.9 4: 0.8 4: 0.6

Least common: 1: 0.1.1 1: 0.11.1 1: 0.1a2 1: 0.20.1 1: 0.21.1 1: 0.21.2 1: 0.21.3 1: 0.22 1: 0.22.1 1: 0.23

tags.sha: (3/3)

Total rows: 261 Null rows: 0 Blank rows: 0

Distinct values: 261 ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
sqlite-utils analyze-tables command and table.analyze_column() method 763320133  

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