{"html_url": "https://github.com/simonw/datasette/issues/20#issuecomment-348420955", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/20", "id": 348420955, "node_id": "MDEyOklzc3VlQ29tbWVudDM0ODQyMDk1NQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-12-01T07:21:08Z", "updated_at": "2017-12-01T07:21:08Z", "author_association": "OWNER", "body": "I'll use the existing metadata.json file:\r\n\r\n {\r\n \"databases\": {\r\n \"mydb\": {\r\n \"queries\": {\r\n \"custom_thingy\": {...\r\n\r\nThe query definition can either be just a string of SQL, or it can be an object with a sql key and optional title and description keys.\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 267759136, "label": "Config file with support for defining canned queries"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/20#issuecomment-348420129", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/20", "id": 348420129, "node_id": "MDEyOklzc3VlQ29tbWVudDM0ODQyMDEyOQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-12-01T07:16:25Z", "updated_at": "2017-12-01T07:16:25Z", "author_association": "OWNER", "body": "I've found some examples of canned queries I want to support that can't be represented as views, so I'm going to reopen this.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 267759136, "label": "Config file with support for defining canned queries"}, "performed_via_github_app": null}