{"html_url": "https://github.com/simonw/datasette/issues/25#issuecomment-344487639", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/25", "id": 344487639, "node_id": "MDEyOklzc3VlQ29tbWVudDM0NDQ4NzYzOQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-11-15T05:11:11Z", "updated_at": "2017-11-15T05:11:11Z", "author_association": "OWNER", "body": "Since you can already download the database directly, I'm not going to bother with this one.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 267857622, "label": "Endpoint that returns SQL ready to be piped into DB"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/25#issuecomment-343715915", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/25", "id": 343715915, "node_id": "MDEyOklzc3VlQ29tbWVudDM0MzcxNTkxNQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-11-12T06:08:28Z", "updated_at": "2017-11-12T06:08:28Z", "author_association": "OWNER", "body": " con = sqlite3.connect('existing_db.db')\r\n with open('dump.sql', 'w') as f:\r\n for line in con.iterdump():\r\n f.write('%s\\n' % line)\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 267857622, "label": "Endpoint that returns SQL ready to be piped into DB"}, "performed_via_github_app": null}