{"html_url": "https://github.com/simonw/sqlite-utils/issues/239#issuecomment-1236200834", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/239", "id": 1236200834, "node_id": "IC_kwDOCGYnMM5Jru2C", "user": {"value": 14294, "label": "hubgit"}, "created_at": "2022-09-03T21:26:32Z", "updated_at": "2022-09-03T21:26:32Z", "author_association": "NONE", "body": "I was looking for something like this today, for extracting columns containing objects (and arrays of objects) into separate tables. \r\n\r\nWould it make sense (especially for the fields containing arrays of objects) to create a one-to-many relationship, where each row of the newly created table would contain the id of the row that originally contained it?\r\n\r\nIf the extracted objects have a unique id and are repeated, it could even create a many-to-many relationship, with a third table for the joins.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 816526538, "label": "sqlite-utils extract could handle nested objects"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/239#issuecomment-960295228", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/239", "id": 960295228, "node_id": "IC_kwDOCGYnMM45PPE8", "user": {"value": 350038, "label": "tmaier"}, "created_at": "2021-11-03T23:35:37Z", "updated_at": "2021-11-03T23:36:50Z", "author_association": "NONE", "body": "I think I only wonder how I would parse the JSON `value` within such a lambda...\r\n\r\nMy naive approach would have been `$ sqlite-utils convert demo.db statuses statuses 'return value' --multi`", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 816526538, "label": "sqlite-utils extract could handle nested objects"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/239#issuecomment-960292442", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/239", "id": 960292442, "node_id": "IC_kwDOCGYnMM45POZa", "user": {"value": 350038, "label": "tmaier"}, "created_at": "2021-11-03T23:28:55Z", "updated_at": "2021-11-03T23:28:55Z", "author_association": "NONE", "body": "I am super interested in this feature.\r\n\r\nAfter reading the other issues you referenced, I think the right way would be to use the current extract feature and then to use `sqlite-utils convert` to extract the json object into individual columns", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 816526538, "label": "sqlite-utils extract could handle nested objects"}, "performed_via_github_app": null}