{"html_url": "https://github.com/simonw/datasette/issues/295#issuecomment-393534579", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/295", "id": 393534579, "node_id": "MDEyOklzc3VlQ29tbWVudDM5MzUzNDU3OQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2018-05-31T13:44:15Z", "updated_at": "2018-05-31T13:44:15Z", "author_association": "OWNER", "body": "I actually started doing this in 45e502aace6cc1198cc5f9a04d61b4a1860a012b", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 327383759, "label": "Extract unit tests for inspect out to test_inspect.py"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/243#issuecomment-393544357", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/243", "id": 393544357, "node_id": "MDEyOklzc3VlQ29tbWVudDM5MzU0NDM1Nw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2018-05-31T14:14:49Z", "updated_at": "2018-05-31T14:14:49Z", "author_association": "OWNER", "body": "Demo: https://datasette-publish-spatialite-demo.now.sh/spatialite-test-c88bc35?sql=select+AsText(Geometry)+from+HighWays+limit+1%3B\r\n\r\nPublished using `datasette publish now --spatialite /tmp/spatialite-test.db`", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 318737808, "label": "--spatialite option for datasette publish commands"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/294#issuecomment-393547960", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/294", "id": 393547960, "node_id": "MDEyOklzc3VlQ29tbWVudDM5MzU0Nzk2MA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2018-05-31T14:25:43Z", "updated_at": "2018-05-31T14:25:43Z", "author_association": "OWNER", "body": "SpatialLite columns are actually quite a bit more interesting than this - they also have a `geometry_type` (point, polygon, linestring etc), a `coord_dimension` (usually 2 but can be higher) and an `srid`.\r\n\r\nFor example:\r\n\r\nhttps://datasette-publish-spatialite-demo.now.sh/spatialite-test-c88bc35/geometry_columns\r\n\r\n![2018-05-31 at 7 22 am](https://user-images.githubusercontent.com/9599/40787843-6f9600ee-64a3-11e8-84e5-64d7cc69603a.png)\r\n\r\nThe SRID here is particularly interesting, because it helps hint at the fact that the results from these queries won't be latitude/longitude co-ordinates - which means that `AsGeoJSON()` won't return results that can be easily rendered by Leaflet:\r\n\r\nhttps://datasette-publish-spatialite-demo.now.sh/spatialite-test-c88bc35?sql=select+AsGeoJSON(Geometry)+from+HighWays%20limit1\r\n\r\nCompare with https://timezones-api.now.sh/timezones-a99b2e3/geometry_columns:\r\n\r\n![2018-05-31 at 7 25 am](https://user-images.githubusercontent.com/9599/40787991-d2650756-64a3-11e8-936e-2dcce7dd1515.png)\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 327365110, "label": "inspect should record column types"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/294#issuecomment-393548602", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/294", "id": 393548602, "node_id": "MDEyOklzc3VlQ29tbWVudDM5MzU0ODYwMg==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2018-05-31T14:27:41Z", "updated_at": "2018-05-31T14:27:56Z", "author_association": "OWNER", "body": "Presumably the difference in primary key structure between those two is caused by the fact that the `spatialite-test` database (actually https://www.gaia-gis.it/spatialite-2.3.1/test-2.3.sqlite.gz downloaded from https://www.gaia-gis.it/spatialite-2.3.1/resources.html ) was created by a much older version of SpatialLite - presumably v2.3.1", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 327365110, "label": "inspect should record column types"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/294#issuecomment-393549215", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/294", "id": 393549215, "node_id": "MDEyOklzc3VlQ29tbWVudDM5MzU0OTIxNQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2018-05-31T14:29:37Z", "updated_at": "2018-05-31T14:29:37Z", "author_association": "OWNER", "body": "Also of note: `spatialite-test` uses readable strings in the `type` column, while `timezones` has a `geometry_type` column with integers in it.\r\n\r\nThose integers are documented here: https://www.gaia-gis.it/fossil/libspatialite/wiki?name=switching-to-4.0\r\n\r\n![2018-05-31 at 7 29 am](https://user-images.githubusercontent.com/9599/40788210-5d0f0dd4-64a4-11e8-8141-0386b5c7b384.png)\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 327365110, "label": "inspect should record column types"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/297#issuecomment-393554151", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/297", "id": 393554151, "node_id": "MDEyOklzc3VlQ29tbWVudDM5MzU1NDE1MQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2018-05-31T14:44:37Z", "updated_at": "2018-05-31T14:44:37Z", "author_association": "OWNER", "body": "I fixed this in https://github.com/simonw/datasette/commit/b18e4515855c3f1eeca3dfcccdbb6df05869084a", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 327420945, "label": "datasette publish Dockerfile should use python:3.6-slim-stretch"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/303#issuecomment-393557406", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/303", "id": 393557406, "node_id": "MDEyOklzc3VlQ29tbWVudDM5MzU1NzQwNg==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2018-05-31T14:54:03Z", "updated_at": "2018-05-31T14:54:03Z", "author_association": "OWNER", "body": "Our test fixtures currently have a table with a name ending in `.csv`:\r\n\r\nhttps://github.com/simonw/datasette/blob/d69ebce53385b7c6fafb85fdab3b136dbf3f332c/tests/fixtures.py#L234-L237", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 328172521, "label": "Support table names ending with .json or .csv"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/294#issuecomment-393557968", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/294", "id": 393557968, "node_id": "MDEyOklzc3VlQ29tbWVudDM5MzU1Nzk2OA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2018-05-31T14:55:46Z", "updated_at": "2018-05-31T14:55:46Z", "author_association": "OWNER", "body": "I'm not sure what the best JSON shape for this would be considering the potential complexity of geospatial columns. I do think it's worth exposing these in the inspect JSON though, mainly so Datasette Registry can keep track of all of the openly available geodata out there.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 327365110, "label": "inspect should record column types"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/303#issuecomment-393599840", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/303", "id": 393599840, "node_id": "MDEyOklzc3VlQ29tbWVudDM5MzU5OTg0MA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2018-05-31T16:54:22Z", "updated_at": "2018-05-31T16:54:32Z", "author_association": "OWNER", "body": "The interesting thing about this is that it requires URL routing to become aware of the names of all of the available tables.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 328172521, "label": "Support table names ending with .json or .csv"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/303#issuecomment-393600441", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/303", "id": 393600441, "node_id": "MDEyOklzc3VlQ29tbWVudDM5MzYwMDQ0MQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2018-05-31T16:56:25Z", "updated_at": "2018-05-31T16:57:41Z", "author_association": "OWNER", "body": "Here's a nasty challenge: what happens if a database has the following two tables:\r\n\r\n* `blah`\r\n* `blah.json`\r\n\r\nWhat would the URL be for the JSON endpoint for the `blah` table?", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 328172521, "label": "Support table names ending with .json or .csv"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/304#issuecomment-393610731", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/304", "id": 393610731, "node_id": "MDEyOklzc3VlQ29tbWVudDM5MzYxMDczMQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2018-05-31T17:29:31Z", "updated_at": "2018-05-31T17:30:05Z", "author_association": "OWNER", "body": "I prototyped this a while ago here https://github.com/simonw/datasette/commit/04476ead53758044a5f272ae8696b63d6703115e before we had the ``--config`` mechanism.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 328229224, "label": "Ability to configure SQLite cache_size"}, "performed_via_github_app": null}