home / github

Menu
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 410384988

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: 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
473156905 https://github.com/simonw/datasette/issues/411#issuecomment-473156905 https://api.github.com/repos/simonw/datasette/issues/411 MDEyOklzc3VlQ29tbWVudDQ3MzE1NjkwNQ== simonw 9599 2019-03-15T04:42:58Z 2019-03-15T04:42:58Z OWNER Have you tried this? MakePoint(:Long || ", " || :Lat) {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} How to pass named parameter into spatialite MakePoint() function 410384988  
519065799 https://github.com/simonw/datasette/issues/411#issuecomment-519065799 https://api.github.com/repos/simonw/datasette/issues/411 MDEyOklzc3VlQ29tbWVudDUxOTA2NTc5OQ== dazzag24 1055831 2019-08-07T12:00:36Z 2019-08-07T12:00:36Z NONE Hi, Apologies for the long delay. I tried your suggesting escaping approach: `SELECT a.pos AS rank, b.id, b.name, b.country, b.latitude AS latitude, b.longitude AS longitude, a.distance / 1000.0 AS dist_km FROM KNN AS a LEFT JOIN airports AS b ON (b.rowid = a.fid)WHERE f_table_name = 'airports' AND ref_geometry = MakePoint(:Long || ", " || :Lat) AND max_items = 6; ` and it returns this error: `wrong number of arguments to function MakePoint()` Anything else you suggest I try? Thanks {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} How to pass named parameter into spatialite MakePoint() function 410384988  
1779267468 https://github.com/simonw/datasette/issues/411#issuecomment-1779267468 https://api.github.com/repos/simonw/datasette/issues/411 IC_kwDOBm6k_c5qDXeM hcarter333 363004 2023-10-25T13:23:04Z 2023-10-25T13:23:04Z NONE Using the [Counties example](https://us-counties.datasette.io/counties/county_for_latitude_longitude?longitude=-122&latitude=37), I was able to pull out the MakePoint method as MakePoint(cast(rm_rnb_history_pres.rx_lng as float), cast(rm_rnb_history_pres.rx_lat as float)) as geometry which worked, giving me a geometry column. ![image](https://github.com/simonw/datasette/assets/363004/6393b712-9e3d-416d-ba37-202934d5f604) gave ![image](https://github.com/simonw/datasette/assets/363004/219db7b2-8107-41b3-a049-ef4d6bd7ac7a) I believe it's the cast to float that does the trick. Prior to using the cast, I also received a 'wrong number of arguments' eror. {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} How to pass named parameter into spatialite MakePoint() function 410384988  

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