{"html_url": "https://github.com/simonw/sqlite-utils/issues/125#issuecomment-664065341", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/125", "id": 664065341, "node_id": "MDEyOklzc3VlQ29tbWVudDY2NDA2NTM0MQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-07-27T00:49:41Z", "updated_at": "2020-07-27T00:49:41Z", "author_association": "OWNER", "body": "Documentation: https://github.com/simonw/sqlite-utils/commit/20e543e9a492f2e764caae73c38e87f18eaec444?short_path=7240b7c#diff-7240b7c71b1a8194da0c001c64fc8d40", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 665817570, "label": "Output binary columns in \"sqlite-utils query\" JSON"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/125#issuecomment-664062546", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/125", "id": 664062546, "node_id": "MDEyOklzc3VlQ29tbWVudDY2NDA2MjU0Ng==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-07-27T00:33:03Z", "updated_at": "2020-07-27T00:33:03Z", "author_association": "OWNER", "body": "I'm going to imitate how Datasette solves this problem:\r\n```json\r\n[\r\n {\r\n \"name\": \"lorem.txt\",\r\n \"mode\": 33188,\r\n \"mtime\": 1595805965,\r\n \"sz\": 16984,\r\n \"data\": {\r\n \"$base64\": true,\r\n \"encoded\": \"eJzt0c1xAyEMBeC7q1ABHleR3HxNAQrIjmb4M0gelx+RTY7p4N2WBYT0vmufUknH8kq5lz5pqRFXsTOl3pYkE/NJnHXoStruJEVjc0mOCyTqq/ZMJnXEZW1Js2ZvRm5U+DPKk9hRWqjyvTFx0YfzhT6MpGmN2lR1fzxjyfVMD9dFrS+bnkleMpMam/ZGXgrX1I/K+5Au3S/9lNQRh0k4Gq/RUz8GiKfsQm+7JLsJ6fTo5JhVG00ZU76kZZkxePx49uIjnpNoJyYlWUsoaSl/CcVATje/Kxu13RANnrHweaH3V5Jh4jvGyKCnxJLiXPKhmW3fiCnG7Jql7RR3UvFo8jJ4z039dtOkTFmWzL1be9lt8A5II471m6vXy+l0BR/4wAc+8IEPfOADH/jABz7wgQ984AMf+MAHPvCBD3zgAx/4wAc+8IEPfOADH/jABz7wgQ984AMf+MAHPvCBD3zgAx/4wAc+8IEPfOADH/jABz7wgQ984PuP7xubBoN9\"\r\n }\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": 665817570, "label": "Output binary columns in \"sqlite-utils query\" JSON"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/125#issuecomment-664012247", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/125", "id": 664012247, "node_id": "MDEyOklzc3VlQ29tbWVudDY2NDAxMjI0Nw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-07-26T16:48:46Z", "updated_at": "2020-07-26T16:48:46Z", "author_association": "OWNER", "body": "I could solve round tripping (at least a bit) by allowing insert to be run with a flag that says \"these columns are base64 encoded, store the decoded data in a BLOB\".\r\n\r\nThat would solve inserting binary data using JSON too.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 665817570, "label": "Output binary columns in \"sqlite-utils query\" JSON"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/125#issuecomment-664012148", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/125", "id": 664012148, "node_id": "MDEyOklzc3VlQ29tbWVudDY2NDAxMjE0OA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-07-26T16:47:51Z", "updated_at": "2020-07-26T16:47:51Z", "author_association": "OWNER", "body": "Best solution I can think of is to return the data as base64. It's a bit nasty since it means you can't round trip it back again.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 665817570, "label": "Output binary columns in \"sqlite-utils query\" JSON"}, "performed_via_github_app": null}