{"html_url": "https://github.com/simonw/sqlite-utils/issues/107#issuecomment-623128528", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/107", "id": 623128528, "node_id": "MDEyOklzc3VlQ29tbWVudDYyMzEyODUyOA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-05-03T15:36:58Z", "updated_at": "2020-05-03T15:36:58Z", "author_association": "OWNER", "body": "Documentation: https://github.com/simonw/sqlite-utils/blob/d16097231c5e51ea857b58c700f97a17b68dc583/docs/cli.rst#creating-views", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 611222968, "label": "sqlite-utils create-view CLI command"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/107#issuecomment-623127140", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/107", "id": 623127140, "node_id": "MDEyOklzc3VlQ29tbWVudDYyMzEyNzE0MA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-05-03T15:27:22Z", "updated_at": "2020-05-03T15:27:22Z", "author_association": "OWNER", "body": "Syntax:\r\n\r\n $ sqlite-utils create-view my.db myview \"select sqlite_version()\"\r\n\r\nAlso accepts `--replace` and `--ignore` options, same as `create-table`.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 611222968, "label": "sqlite-utils create-view CLI command"}, "performed_via_github_app": null} {"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/108#issuecomment-623050458", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/108", "id": 623050458, "node_id": "MDEyOklzc3VlQ29tbWVudDYyMzA1MDQ1OA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-05-03T04:00:32Z", "updated_at": "2020-05-03T04:00:32Z", "author_association": "OWNER", "body": "```\r\nfrom sqlite_utils import cli\r\ncli.cli.commands.keys() \r\n```\r\nOutputs:\r\n``` \r\ndict_keys(['tables', 'views', 'vacuum', 'optimize', 'add-column', 'add-foreign-key', 'index-foreign-keys', 'create-index', 'enable-fts', 'populate-fts', 'disable-fts', 'insert', 'upsert', 'create-table', 'query', 'rows'])\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 611326701, "label": "Documentation unit tests for CLI commands"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/108#issuecomment-623050375", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/108", "id": 623050375, "node_id": "MDEyOklzc3VlQ29tbWVudDYyMzA1MDM3NQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-05-03T03:59:16Z", "updated_at": "2020-05-03T03:59:27Z", "author_association": "OWNER", "body": "```\r\nimport re\r\nr = re.compile(r'\\$ sqlite-utils (\\S+) ')\r\nrst = open(\"docs/cli.rst\").read()\r\n{command for command in r.findall(rst) if \".\" not in command and \":\" not in command}\r\n```\r\nOutputs:\r\n```\r\n{'add-column',\r\n 'add-foreign-key',\r\n 'create-index',\r\n 'disable-fts',\r\n 'enable-fts',\r\n 'index-foreign-keys',\r\n 'insert',\r\n 'optimize',\r\n 'populate-fts',\r\n 'query',\r\n 'rows',\r\n 'tables',\r\n 'vacuum',\r\n 'views'}\r\n```\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 611326701, "label": "Documentation unit tests for CLI commands"}, "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/datasette/issues/151#issuecomment-623047233", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/151", "id": 623047233, "node_id": "MDEyOklzc3VlQ29tbWVudDYyMzA0NzIzMw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-05-03T03:11:16Z", "updated_at": "2020-05-03T03:11:16Z", "author_association": "OWNER", "body": "Now live at https://latest.datasette.io/-/patterns", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 276718605, "label": "Set up a pattern portfolio"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/151#issuecomment-623044858", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/151", "id": 623044858, "node_id": "MDEyOklzc3VlQ29tbWVudDYyMzA0NDg1OA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-05-03T02:37:03Z", "updated_at": "2020-05-03T02:37:03Z", "author_association": "OWNER", "body": "I'm going to put this at `/-/patterns`, which will render a template called `patterns.html`.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 276718605, "label": "Set up a pattern portfolio"}, "performed_via_github_app": null}