home / github

Menu
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 313494458

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: user, author_association, created_at (date), updated_at (date)

id ▼ html_url issue_url node_id user created_at updated_at author_association body reactions issue performed_via_github_app
380606998 https://github.com/simonw/datasette/pull/200#issuecomment-380606998 https://api.github.com/repos/simonw/datasette/issues/200 MDEyOklzc3VlQ29tbWVudDM4MDYwNjk5OA== simonw 9599 2018-04-11T21:50:14Z 2018-04-11T21:50:14Z OWNER We should only do this if we're certain the spatialite module has been loaded. I could imagine someone having a `sql_statements_log` table of their own without using spatialite for example. I think the most reliable way to detect spatialite is to run `SELECT AddGeometryColumn(1, 2, 3, 4, 5);` against a `:memory:` database and see if it throws an exception - similar to how we detect FTS. We could add this as a `detect_spatialite()` function in `utils.py` and call it once on startup. {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Hide Spatialite system tables 313494458  
380608372 https://github.com/simonw/datasette/pull/200#issuecomment-380608372 https://api.github.com/repos/simonw/datasette/issues/200 MDEyOklzc3VlQ29tbWVudDM4MDYwODM3Mg== russss 45057 2018-04-11T21:55:46Z 2018-04-11T21:55:46Z CONTRIBUTOR > I think the most reliable way to detect spatialite is to run `SELECT AddGeometryColumn(1, 2, 3, 4, 5);` against a `:memory:` database and see if it throws an exception Or just see if there's a `geometry_columns` table? I think that's quite unlikely to be added by accident (and it's an OGC standard). It also tells you if Spatialite is installed in the database rather than just loaded. {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Hide Spatialite system tables 313494458  
380951474 https://github.com/simonw/datasette/pull/200#issuecomment-380951474 https://api.github.com/repos/simonw/datasette/issues/200 MDEyOklzc3VlQ29tbWVudDM4MDk1MTQ3NA== simonw 9599 2018-04-12T21:34:39Z 2018-04-12T21:34:39Z OWNER Nice, thanks very much. {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Hide Spatialite system tables 313494458  

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 35.028ms · About: simonw/datasette-graphql