{"html_url": "https://github.com/simonw/sqlite-utils/issues/164#issuecomment-696473559", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/164", "id": 696473559, "node_id": "MDEyOklzc3VlQ29tbWVudDY5NjQ3MzU1OQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-09-22T02:10:37Z", "updated_at": "2020-09-22T02:10:37Z", "author_association": "OWNER", "body": "Maybe something like this:\r\n\r\n sqlite-utils transform mydb.db mytable -c age integer --rename age dog_age\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 706017416, "label": "sqlite-utils transform sub-command"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/164#issuecomment-696500922", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/164", "id": 696500922, "node_id": "MDEyOklzc3VlQ29tbWVudDY5NjUwMDkyMg==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-09-22T04:22:40Z", "updated_at": "2020-09-22T04:22:40Z", "author_association": "OWNER", "body": "Documentation for the `.transform()` method #114 (now landed) is here: https://sqlite-utils.readthedocs.io/en/latest/python-api.html#transforming-a-table", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 706017416, "label": "sqlite-utils transform sub-command"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/164#issuecomment-696520928", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/164", "id": 696520928, "node_id": "MDEyOklzc3VlQ29tbWVudDY5NjUyMDkyOA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-09-22T05:50:17Z", "updated_at": "2020-09-22T05:50:17Z", "author_association": "OWNER", "body": "Idea for CLI options:\r\n```\r\n--type age integer\r\n--drop colname\r\n--rename oldname newname\r\n--not-null col\r\n--not-null-false col\r\n--pk new_id\r\n--pk-none\r\n--default col value\r\n--default-none column\r\n--drop-foreign-key col other_table other_column\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 706017416, "label": "sqlite-utils transform sub-command"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/164#issuecomment-696567988", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/164", "id": 696567988, "node_id": "MDEyOklzc3VlQ29tbWVudDY5NjU2Nzk4OA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-09-22T07:57:50Z", "updated_at": "2020-09-22T07:57:50Z", "author_association": "OWNER", "body": "Documentation: https://sqlite-utils.readthedocs.io/en/latest/cli.html#transforming-tables", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 706017416, "label": "sqlite-utils transform sub-command"}, "performed_via_github_app": null}