{"html_url": "https://github.com/simonw/datasette/issues/1924#issuecomment-1333023273", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1924", "id": 1333023273, "node_id": "IC_kwDOBm6k_c5PdFIp", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-12-01T01:34:48Z", "updated_at": "2022-12-01T01:34:48Z", "author_association": "OWNER", "body": "This will enable some very cool Datasette write API demos - for example, Git scrapers that insert-replace the most recent copy of the scraped data to a table somewhere (which can then produce an atom feed with https://datasette.io/plugins/datasette-atom)", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1470509936, "label": "Docs for replace:true and ignore:true options for insert API"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1924#issuecomment-1333025076", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1924", "id": 1333025076, "node_id": "IC_kwDOBm6k_c5PdFk0", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-12-01T01:37:09Z", "updated_at": "2022-12-01T01:37:09Z", "author_association": "OWNER", "body": "Related question: what happens if you attempt to insert rows without either of these settings and 1:10 of them is an integrity error due to an existing primary key?\r\n\r\nDoes the entire batch fail to be inserted? Should it?\r\n\r\nThis may be the point that I need to think hard about how to use transactions here.\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": 1470509936, "label": "Docs for replace:true and ignore:true options for insert API"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1924#issuecomment-1333042785", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1924", "id": 1333042785, "node_id": "IC_kwDOBm6k_c5PdJ5h", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-12-01T02:00:06Z", "updated_at": "2022-12-01T02:00:06Z", "author_association": "OWNER", "body": "Looks like I did implement these already:\r\n\r\nhttps://github.com/simonw/datasette/blob/9a1536b52a07e32da5900652da1bd7894c58fa9f/tests/test_api_write.py#L270-L273\r\n\r\nBut forgot to document them!", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1470509936, "label": "Docs for replace:true and ignore:true options for insert API"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1924#issuecomment-1334165225", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1924", "id": 1334165225, "node_id": "IC_kwDOBm6k_c5Phb7p", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-12-01T18:15:15Z", "updated_at": "2022-12-01T18:15:15Z", "author_association": "OWNER", "body": "Updated docs at the bottom of this section: https://docs.datasette.io/en/latest/json_api.html#inserting-rows", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1470509936, "label": "Docs for replace:true and ignore:true options for insert API"}, "performed_via_github_app": null}