{"html_url": "https://github.com/simonw/sqlite-utils/issues/27#issuecomment-623126943", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/27", "id": 623126943, "node_id": "MDEyOklzc3VlQ29tbWVudDYyMzEyNjk0Mw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-05-03T15:25:55Z", "updated_at": "2020-05-03T15:25:55Z", "author_association": "OWNER", "body": "Documentation: https://github.com/simonw/sqlite-utils/blob/78264b738cd72ffad6e5c32ede3f074f8aad0ca4/docs/cli.rst#creating-tables", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 455496504, "label": "sqlite-utils create-table command"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/27#issuecomment-623120166", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/27", "id": 623120166, "node_id": "MDEyOklzc3VlQ29tbWVudDYyMzEyMDE2Ng==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-05-03T14:38:59Z", "updated_at": "2020-05-03T14:38:59Z", "author_association": "OWNER", "body": "I'll stick with requiring all three fk arguments.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 455496504, "label": "sqlite-utils create-table command"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/27#issuecomment-623051550", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/27", "id": 623051550, "node_id": "MDEyOklzc3VlQ29tbWVudDYyMzA1MTU1MA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-05-03T04:17:18Z", "updated_at": "2020-05-03T04:17:18Z", "author_association": "OWNER", "body": "Be nice if you could do `--fk colname` and have it guess the rest, but I'm not sure how to do that with a CLI option - they need a fixed number of arguments so that they don't consume the next batch of options.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 455496504, "label": "sqlite-utils create-table command"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/27#issuecomment-623051447", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/27", "id": 623051447, "node_id": "MDEyOklzc3VlQ29tbWVudDYyMzA1MTQ0Nw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-05-03T04:15:52Z", "updated_at": "2020-05-03T04:15:52Z", "author_association": "OWNER", "body": "Supporting `--fk colname othertable othercol` would be neat too.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 455496504, "label": "sqlite-utils create-table command"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/27#issuecomment-623051392", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/27", "id": 623051392, "node_id": "MDEyOklzc3VlQ29tbWVudDYyMzA1MTM5Mg==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-05-03T04:15:05Z", "updated_at": "2020-05-03T04:15:05Z", "author_association": "OWNER", "body": "I need tests for what happens if table already exists, or if the user provides invalid column types.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 455496504, "label": "sqlite-utils create-table command"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/27#issuecomment-623049505", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/27", "id": 623049505, "node_id": "MDEyOklzc3VlQ29tbWVudDYyMzA0OTUwNQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-05-03T03:45:32Z", "updated_at": "2020-05-03T03:45:32Z", "author_association": "OWNER", "body": "Could take `--ignore` to ignore if table already exists, and `--replace` to drop and replace it if it exists.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 455496504, "label": "sqlite-utils create-table command"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/27#issuecomment-623048530", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/27", "id": 623048530, "node_id": "MDEyOklzc3VlQ29tbWVudDYyMzA0ODUzMA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-05-03T03:30:31Z", "updated_at": "2020-05-03T03:30:31Z", "author_association": "OWNER", "body": "Copy the design for `--not-null` and `--default` from the `insert` command:\r\n```\r\n$ sqlite-utils insert dogs.db dogs_with_scores dogs-with-scores.json \\\r\n --not-null=age \\\r\n --not-null=name \\\r\n --default age 2 \\\r\n --default score 5\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 455496504, "label": "sqlite-utils create-table command"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/27#issuecomment-526794367", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/27", "id": 526794367, "node_id": "MDEyOklzc3VlQ29tbWVudDUyNjc5NDM2Nw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-08-31T03:05:18Z", "updated_at": "2019-08-31T03:06:10Z", "author_association": "OWNER", "body": "Potential syntax:\r\n\r\n $ sqlite-utils create-table foo.db dogs \\\r\n id integer \\\r\n name string \\\r\n age integer \\\r\n --pk=id", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 455496504, "label": "sqlite-utils create-table command"}, "performed_via_github_app": null}