home / github

Menu
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

8 rows where issue = 557842245

✎ 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
1012158895 https://github.com/simonw/sqlite-utils/issues/79#issuecomment-1012158895 https://api.github.com/repos/simonw/sqlite-utils/issues/79 IC_kwDOCGYnMM48VFGv eyeseast 25778 2022-01-13T13:55:59Z 2022-01-13T13:55:59Z CONTRIBUTOR Came here to add this. I might pick it up. Would also add a utility to create (and update and delete?) a spatial index. It's not much code but I have to look it up every time. {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Helper methods for working with SpatiaLite 557842245  
1012230212 https://github.com/simonw/sqlite-utils/issues/79#issuecomment-1012230212 https://api.github.com/repos/simonw/sqlite-utils/issues/79 IC_kwDOCGYnMM48VWhE eyeseast 25778 2022-01-13T15:15:13Z 2022-01-13T15:15:13Z CONTRIBUTOR Some proposals I'd add to sqlite-utils: Some version of this, from [geojson-to-sqlite](https://github.com/simonw/geojson-to-sqlite/blob/main/geojson_to_sqlite/utils.py#L124-L130): ```python def init_spatialite(db, lib): db.conn.enable_load_extension(True) db.conn.load_extension(lib) # Initialize SpatiaLite if not yet initialized if "spatial_ref_sys" in db.table_names(): return db.conn.execute("select InitSpatialMetadata(1)") ``` Also a function for creating a spatial index: ```python db.conn.execute("select CreateSpatialIndex(?, ?)", [table, "geometry"]) ``` I don't know the nuances of updating a spatial index, or checking if one already exists. This could be a CLI method like: ```sh sqlite-utils spatial-index spatial.db table-name column-name ``` {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Helper methods for working with SpatiaLite 557842245  
1012253198 https://github.com/simonw/sqlite-utils/issues/79#issuecomment-1012253198 https://api.github.com/repos/simonw/sqlite-utils/issues/79 IC_kwDOCGYnMM48VcIO eyeseast 25778 2022-01-13T15:39:14Z 2022-01-13T15:39:14Z CONTRIBUTOR Other thing: If there get to be enough utils, I think it's worth moving all the spatialite stuff into its own file (`gis.py` or something) just so it's easier to find later. {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Helper methods for working with SpatiaLite 557842245  
1012413729 https://github.com/simonw/sqlite-utils/issues/79#issuecomment-1012413729 https://api.github.com/repos/simonw/sqlite-utils/issues/79 IC_kwDOCGYnMM48WDUh eyeseast 25778 2022-01-13T18:50:00Z 2022-01-13T18:50:00Z CONTRIBUTOR One more thing I'm going to add: A method to add a geometry column, which I'll need to do to create a spatial index on a table. {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Helper methods for working with SpatiaLite 557842245  
1013698557 https://github.com/simonw/sqlite-utils/issues/79#issuecomment-1013698557 https://api.github.com/repos/simonw/sqlite-utils/issues/79 IC_kwDOCGYnMM48a8_9 eyeseast 25778 2022-01-15T15:15:22Z 2022-01-15T15:15:22Z CONTRIBUTOR @simonw I have a PR here https://github.com/simonw/sqlite-utils/pull/385 that adds Spatialite helpers on the Python side. Please let me know how it looks. {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Helper methods for working with SpatiaLite 557842245  
1029317527 https://github.com/simonw/sqlite-utils/issues/79#issuecomment-1029317527 https://api.github.com/repos/simonw/sqlite-utils/issues/79 IC_kwDOCGYnMM49WiOX eyeseast 25778 2022-02-03T19:18:02Z 2022-02-03T19:18:02Z CONTRIBUTOR Taking part of the conversation from #385 here. > Would sqlite-utils add-geometry-column ... be a good CLI enhancement. for example? Yes. And also `sqlite-utils create-spatial-index` would be great to have. My plan would be to add those once the Python API is settled. {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Helper methods for working with SpatiaLite 557842245  
1029683977 https://github.com/simonw/sqlite-utils/issues/79#issuecomment-1029683977 https://api.github.com/repos/simonw/sqlite-utils/issues/79 IC_kwDOCGYnMM49X7sJ simonw 9599 2022-02-04T05:58:15Z 2022-02-04T05:58:15Z OWNER Documentation: https://sqlite-utils.datasette.io/en/latest/python-api.html#spatialite-helpers {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Helper methods for working with SpatiaLite 557842245  
1029703503 https://github.com/simonw/sqlite-utils/issues/79#issuecomment-1029703503 https://api.github.com/repos/simonw/sqlite-utils/issues/79 IC_kwDOCGYnMM49YAdP simonw 9599 2022-02-04T06:46:32Z 2022-02-04T06:46:32Z OWNER Shipped in 3.23: https://sqlite-utils.datasette.io/en/stable/changelog.html#v3-23 {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Helper methods for working with SpatiaLite 557842245  

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