{"html_url": "https://github.com/simonw/datasette/issues/1258#issuecomment-807459633", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1258", "id": 807459633, "node_id": "MDEyOklzc3VlQ29tbWVudDgwNzQ1OTYzMw==", "user": {"value": 1385831, "label": "wdccdw"}, "created_at": "2021-03-25T20:48:33Z", "updated_at": "2021-03-25T20:49:34Z", "author_association": "NONE", "body": "What about allowing default parameters when defining the query in metadata.yml? Something like:\r\n```\r\ndatabases:\r\n fec:\r\n queries:\r\n search_by_name:\r\n params:\r\n - q\r\n default-param-values:\r\n q: \"text to search\"\r\n sql: |-\r\n SELECT...\r\n```\r\n\r\nFor now, I'm using a custom database-.html file that hardcodes a default param in the link, but I'd rather not customize the template just for that.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 828858421, "label": "Allow canned query params to specify default values"}, "performed_via_github_app": null}