home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where issue = 683804172 and user = 9599 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

  • --load-extension option for sqlite-utils query · 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
678497497 https://github.com/simonw/sqlite-utils/issues/134#issuecomment-678497497 https://api.github.com/repos/simonw/sqlite-utils/issues/134 MDEyOklzc3VlQ29tbWVudDY3ODQ5NzQ5Nw== simonw 9599 2020-08-21T21:06:26Z 2020-08-21T21:06:26Z OWNER

Ended up needing two skipIfs:

https://github.com/simonw/sqlite-utils/blob/7e9aad7e1c09d1cf80d0b4d17d6157212a4b857d/tests/test_cli.py#L888-L893

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
--load-extension option for sqlite-utils query 683804172  
678476338 https://github.com/simonw/sqlite-utils/issues/134#issuecomment-678476338 https://api.github.com/repos/simonw/sqlite-utils/issues/134 MDEyOklzc3VlQ29tbWVudDY3ODQ3NjMzOA== simonw 9599 2020-08-21T20:22:02Z 2020-08-21T20:22:02Z OWNER

I think that adds it as /usr/lib/x86_64-linux-gnu/mod_spatialite.so.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
--load-extension option for sqlite-utils query 683804172  
678474928 https://github.com/simonw/sqlite-utils/issues/134#issuecomment-678474928 https://api.github.com/repos/simonw/sqlite-utils/issues/134 MDEyOklzc3VlQ29tbWVudDY3ODQ3NDkyOA== simonw 9599 2020-08-21T20:18:33Z 2020-08-21T20:18:33Z OWNER

This should get me SpatiaLite in the GitHub Actions Ubuntu: apt install libsqlite3-mod-spatialite

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
--load-extension option for sqlite-utils query 683804172  
678474018 https://github.com/simonw/sqlite-utils/issues/134#issuecomment-678474018 https://api.github.com/repos/simonw/sqlite-utils/issues/134 MDEyOklzc3VlQ29tbWVudDY3ODQ3NDAxOA== simonw 9599 2020-08-21T20:16:20Z 2020-08-21T20:16:20Z OWNER

Trickiest part of this is how to write a test for it.

I'll do a pytest.skipIf that only executes the test if SpatiaLite is available.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
--load-extension option for sqlite-utils query 683804172  

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