{"html_url": "https://github.com/simonw/sqlite-utils/issues/402#issuecomment-1033366312", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/402", "id": 1033366312, "node_id": "IC_kwDOCGYnMM49l-so", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-02-09T05:28:11Z", "updated_at": "2022-02-09T07:28:48Z", "author_association": "OWNER", "body": "My hunch is that the case where you want to consider input from more than one column will actually be pretty rare - the only case I can think of where I would want to do that is for latitude/longitude columns - everything else that I'd want to use it for (which admittedly is still mostly SpatiaLite stuff) works against a single value.\r\n\r\nThe reason I'm leaning towards using the constructor for the values is that I really like the look of this variant for common conversions:\r\n\r\n```python\r\ndb[\"places\"].insert(\r\n {\r\n \"name\": \"London\",\r\n \"boundary\": GeometryFromGeoJSON({...})\r\n }\r\n)\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1125297737, "label": "Advanced class-based `conversions=` mechanism"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1607#issuecomment-1033403664", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1607", "id": 1033403664, "node_id": "IC_kwDOBm6k_c49mH0Q", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-02-09T06:42:02Z", "updated_at": "2022-02-09T06:42:02Z", "author_association": "OWNER", "body": "Deployed a new build of https://github.com/simonw/calands-datasette/actions/workflows/build-and-deploy.yml for a live demo:\r\n\r\nhttps://calands.datasettes.com/-/versions", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1109783030, "label": "More detailed information about installed SpatiaLite version"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/404#issuecomment-1033407778", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/404", "id": 1033407778, "node_id": "IC_kwDOCGYnMM49mI0i", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-02-09T06:50:26Z", "updated_at": "2022-02-09T06:50:26Z", "author_association": "OWNER", "body": "I'll use this:\r\n\r\n```\r\n sqlite-utils insert plants.db plants plants.csv --csv --convert '\r\n return {\r\n \"name\": row[\"name\"].upper(),\r\n \"latitude\": float(row[\"latitude\"]),\r\n \"longitude\": float(row[\"longitude\"]),\r\n }'\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1128120451, "label": "Add example of `--convert` to the help for `sqlite-utils insert`"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/404#issuecomment-1033410970", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/404", "id": 1033410970, "node_id": "IC_kwDOCGYnMM49mJma", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-02-09T06:56:35Z", "updated_at": "2022-02-09T06:56:35Z", "author_association": "OWNER", "body": "https://sqlite-utils.datasette.io/en/latest/cli-reference.html#insert", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1128120451, "label": "Add example of `--convert` to the help for `sqlite-utils insert`"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/405#issuecomment-1033424454", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/405", "id": 1033424454, "node_id": "IC_kwDOCGYnMM49mM5G", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-02-09T07:18:25Z", "updated_at": "2022-02-09T07:18:25Z", "author_association": "OWNER", "body": "Writing tests against this is always a tiny bit fiddly since the created databases persist across the lifetime of the test run. Using randomly generated names helps.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1128139375, "label": "`Database(memory_name=\"name\")` constructor argument"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/405#issuecomment-1033425512", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/405", "id": 1033425512, "node_id": "IC_kwDOCGYnMM49mNJo", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-02-09T07:20:11Z", "updated_at": "2022-02-09T07:20:11Z", "author_association": "OWNER", "body": "Datasette's implementation: https://github.com/simonw/datasette/blob/458f03ad3a454d271f47a643f4530bd8b60ddb76/datasette/database.py#L73-L79\r\n\r\n```python\r\n if self.memory_name:\r\n uri = \"file:{}?mode=memory&cache=shared\".format(self.memory_name)\r\n conn = sqlite3.connect(\r\n uri,\r\n uri=True,\r\n check_same_thread=False,\r\n )\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1128139375, "label": "`Database(memory_name=\"name\")` constructor argument"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/402#issuecomment-1033428967", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/402", "id": 1033428967, "node_id": "IC_kwDOCGYnMM49mN_n", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-02-09T07:25:44Z", "updated_at": "2022-02-09T07:28:11Z", "author_association": "OWNER", "body": "The CLI version of this could perhaps look like this:\r\n\r\n sqlite-utils insert a.db places places.json \\\r\n --conversion boundary GeometryGeoJSON\r\n\r\nThis will treat the boundary key as GeoJSON. It's equivalent to passing `conversions={\"boundary\": geometryGeoJSON}`\r\n\r\nThe combined latitude/longitude case here can be handled by combining this with the existing `--convert` mechanism.\r\n \r\nAny `Conversion` subclass will be available to the CLI in this way.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1125297737, "label": "Advanced class-based `conversions=` mechanism"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/pull/203#issuecomment-1033641009", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/203", "id": 1033641009, "node_id": "IC_kwDOCGYnMM49nBwx", "user": {"value": 82988, "label": "psychemedia"}, "created_at": "2022-02-09T11:06:18Z", "updated_at": "2022-02-09T11:06:18Z", "author_association": "NONE", "body": "Is there any progress elsewhere on the handling of compound / composite foreign keys, or is this PR still effectively open?", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 743384829, "label": "changes to allow for compound foreign keys"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/403#issuecomment-1033332570", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/403", "id": 1033332570, "node_id": "IC_kwDOCGYnMM49l2da", "user": {"value": 536941, "label": "fgregg"}, "created_at": "2022-02-09T04:22:43Z", "updated_at": "2022-02-09T04:22:43Z", "author_association": "CONTRIBUTOR", "body": "dddoooope", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1126692066, "label": "Document how to add a primary key to a rowid table using `sqlite-utils transform --pk`"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/236#issuecomment-1033772902", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/236", "id": 1033772902, "node_id": "IC_kwDOBm6k_c49nh9m", "user": {"value": 1376648, "label": "jordaneremieff"}, "created_at": "2022-02-09T13:40:52Z", "updated_at": "2022-02-09T13:40:52Z", "author_association": "NONE", "body": "Hi @simonw, \r\n\r\nI've received some inquiries over the last year or so about Datasette and how it might be supported by [Mangum](https://github.com/jordaneremieff/mangum). I maintain Mangum which is, as far as I know, the only project that provides support for ASGI applications in AWS Lambda.\r\n\r\nIf there is anything that I can help with here, please let me know because I think what Datasette provides to the community (even beyond OSS) is noble and worthy of special consideration.", "reactions": "{\"total_count\": 1, \"+1\": 1, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 317001500, "label": "datasette publish lambda plugin"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1633#issuecomment-1034222709", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1633", "id": 1034222709, "node_id": "IC_kwDOBm6k_c49pPx1", "user": {"value": 6613091, "label": "henrikek"}, "created_at": "2022-02-09T21:47:02Z", "updated_at": "2022-02-09T21:47:02Z", "author_association": "NONE", "body": "Is this the correct solution to add the base_url row to url_builder.py?", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1129052172, "label": "base_url or prefix does not work with _exact match"}, "performed_via_github_app": null}