{"html_url": "https://github.com/simonw/datasette/issues/926#issuecomment-672393737", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/926", "id": 672393737, "node_id": "MDEyOklzc3VlQ29tbWVudDY3MjM5MzczNw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-08-12T00:26:17Z", "updated_at": "2020-08-12T00:26:17Z", "author_association": "OWNER", "body": "```\r\n$ datasette --get '/:memory:.json?sql=select+sqlite_version()' | jq .\r\n{\r\n \"database\": \":memory:\",\r\n \"query_name\": null,\r\n \"rows\": [\r\n [\r\n \"3.32.3\"\r\n ]\r\n ],\r\n \"truncated\": false,\r\n \"columns\": [\r\n \"sqlite_version()\"\r\n ],\r\n \"query\": {\r\n \"sql\": \"select sqlite_version()\",\r\n \"params\": {}\r\n },\r\n \"private\": false,\r\n \"allow_execute_sql\": true,\r\n \"query_ms\": 1.165628433227539\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": 677250834, "label": "datasette fixtures.db --get \"/fixtures.json\""}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/926#issuecomment-672338113", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/926", "id": 672338113, "node_id": "MDEyOklzc3VlQ29tbWVudDY3MjMzODExMw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-08-11T22:57:28Z", "updated_at": "2020-08-11T22:57:28Z", "author_association": "OWNER", "body": "I partly want this so I can easily implement a better `test` method for the Homebrew package. The test I have right now looks like this:\r\n\r\nhttps://github.com/simonw/homebrew-datasette/blob/8aa30aa183158051a987a7e3f50e7e3ee05d8ee9/Formula/datasette.rb#L125-L127\r\n\r\n```\r\n test do\r\n system bin/\"datasette\", \"--help\"\r\n end\r\n```\r\nThe Homebrew docs at https://docs.brew.sh/Formula-Cookbook#add-a-test-to-the-formula say:\r\n\r\n> We want tests that don't require any user input and test the basic functionality of the application. For example `foo build-foo input.foo` is a good test and (despite their widespread use) `foo --version` and `foo --help` are bad tests. However, a bad test is better than no test at all.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 677250834, "label": "datasette fixtures.db --get \"/fixtures.json\""}, "performed_via_github_app": null}