{"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/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}