home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where issue = 777707544 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 4

issue 1

  • reset_counts() method and command · 4 ✖

author_association 1

  • OWNER 4
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
753671902 https://github.com/simonw/sqlite-utils/issues/219#issuecomment-753671902 https://api.github.com/repos/simonw/sqlite-utils/issues/219 MDEyOklzc3VlQ29tbWVudDc1MzY3MTkwMg== simonw 9599 2021-01-03T20:31:04Z 2021-01-03T20:32:13Z OWNER

A table.has_count_triggers property.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
reset_counts() method and command 777707544  
753671235 https://github.com/simonw/sqlite-utils/issues/219#issuecomment-753671235 https://api.github.com/repos/simonw/sqlite-utils/issues/219 MDEyOklzc3VlQ29tbWVudDc1MzY3MTIzNQ== simonw 9599 2021-01-03T20:25:10Z 2021-01-03T20:25:10Z OWNER

To detect tables, look at the names of the triggers - {table}{counts_table}_insert and {table}{counts_table}_delete.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
reset_counts() method and command 777707544  
753671009 https://github.com/simonw/sqlite-utils/issues/219#issuecomment-753671009 https://api.github.com/repos/simonw/sqlite-utils/issues/219 MDEyOklzc3VlQ29tbWVudDc1MzY3MTAwOQ== simonw 9599 2021-01-03T20:22:53Z 2021-01-03T20:22:53Z OWNER

I think this should be accompanied by a sqlite-utils reset-counts command.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
reset_counts() method and command 777707544  
753670833 https://github.com/simonw/sqlite-utils/issues/219#issuecomment-753670833 https://api.github.com/repos/simonw/sqlite-utils/issues/219 MDEyOklzc3VlQ29tbWVudDc1MzY3MDgzMw== simonw 9599 2021-01-03T20:20:54Z 2021-01-03T20:20:54Z OWNER

This is a little tricky. We should assume that the existing values in the _counts table cannot be trusted at all when this method is called - so we should probably clear that table entirely and then re-populate it.

But that means we need to figure out which tables in the database have the counts triggers defined.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
reset_counts() method and command 777707544  

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