{"html_url": "https://github.com/simonw/sqlite-utils/issues/44#issuecomment-514162499", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/44", "id": 514162499, "node_id": "MDEyOklzc3VlQ29tbWVudDUxNDE2MjQ5OQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-07-23T11:01:45Z", "updated_at": "2019-07-23T11:01:45Z", "author_association": "OWNER", "body": "`id = table.lookup({\"name\":\"Cleo\"})`\r\n\r\n- If table does not exist, create it with id, name where name is unique\r\n- If table does exist, add unique name column\r\n- If table and column exist, add unique constraint - throw error if impossible\r\n- now either insert the new row or return the existing ID", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 471628483, "label": "Utilities for building lookup tables"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/44#issuecomment-514162930", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/44", "id": 514162930, "node_id": "MDEyOklzc3VlQ29tbWVudDUxNDE2MjkzMA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-07-23T11:03:03Z", "updated_at": "2019-07-23T11:03:16Z", "author_association": "OWNER", "body": "I considered keyword arguments for this, but I am going with a dictionary instead - for two reasons:\r\n\r\n* leaves the option to add extra keyword arguments for further options later\r\n* supports column names that are not valid keyword arguments ", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 471628483, "label": "Utilities for building lookup tables"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/43#issuecomment-514202279", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/43", "id": 514202279, "node_id": "MDEyOklzc3VlQ29tbWVudDUxNDIwMjI3OQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-07-23T13:09:05Z", "updated_at": "2019-07-23T13:09:05Z", "author_association": "OWNER", "body": "Won't fix, I don't think this can be done in an elegant way.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 470691999, "label": ".add_column() doesn't match indentation of initial creation"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/46#issuecomment-514273140", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/46", "id": 514273140, "node_id": "MDEyOklzc3VlQ29tbWVudDUxNDI3MzE0MA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-07-23T15:57:53Z", "updated_at": "2019-07-23T15:57:53Z", "author_association": "OWNER", "body": "This will play very well with the new ability to specify these arguments in the class constructor, like so:\r\n\r\n```python\r\n table = db.table(\"trees\", extracts={\"species_id\": \"Species\"})\r\n table.insert_all([{\r\n \"id\": 1,\r\n \"species_id\": \"Oak\",\r\n }, {\r\n \"id\": 2,\r\n \"species_id\": \"Oak\",\r\n }, {\r\n \"id\": 3,\r\n \"species_id\": \"Palm\",\r\n }])", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 471780443, "label": "extracts= option for insert/update/etc"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/pull/38#issuecomment-514339130", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/38", "id": 514339130, "node_id": "MDEyOklzc3VlQ29tbWVudDUxNDMzOTEzMA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-07-23T18:57:33Z", "updated_at": "2019-07-23T18:57:33Z", "author_association": "OWNER", "body": "This should switch to using `.get()`, introduced in https://github.com/simonw/sqlite-utils/commit/c65b67ca46f70e2da46a5b945f4ed358173262e9", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 467862459, "label": "table.update() method"}, "performed_via_github_app": null}