home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 380606998

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/datasette/pull/200#issuecomment-380606998 https://api.github.com/repos/simonw/datasette/issues/200 380606998 MDEyOklzc3VlQ29tbWVudDM4MDYwNjk5OA== 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
}
313494458  
Powered by Datasette · Queries took 0.913ms · About: github-to-sqlite