{"html_url": "https://github.com/simonw/datasette/issues/36#issuecomment-345262738", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/36", "id": 345262738, "node_id": "MDEyOklzc3VlQ29tbWVudDM0NTI2MjczOA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-11-17T14:45:37Z", "updated_at": "2017-11-17T14:45:37Z", "author_association": "OWNER", "body": "Consider for example https://fivethirtyeight.datasettes.com/fivethirtyeight/inconvenient-sequel%2Fratings\r\n\r\n\"fivethirtyeight__inconvenient-sequel_ratings\"\r\n\r\nThe idea here is to be able to support querystring parameters like this:\r\n\r\n* `?timestamp___date=2017-07-17` - return every item where the timestamp falls on that date\r\n* `?timestamp___year=2017` - return every item where the timestamp falls within 2017\r\n* `?timestamp___month=1` - return every item where the month component is January\r\n* `?timestamp___day=10` - return every item where the day-of-the-month component is 10\r\n\r\nThis is similar to #64 but a fair bit more complicated. \r\n\r\nSQLite date functions are documented here: https://sqlite.org/lang_datefunc.html\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 268262480, "label": "date, year, month and day querystring lookups"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/36#issuecomment-345448756", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/36", "id": 345448756, "node_id": "MDEyOklzc3VlQ29tbWVudDM0NTQ0ODc1Ng==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-11-18T15:17:43Z", "updated_at": "2017-11-18T15:17:43Z", "author_association": "OWNER", "body": "This may be useful:\r\n\r\nhttps://github.com/coleifer/peewee/blob/db85167d93861451a1fe7cde8c4f05748b222634/peewee.py#L162-L185", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 268262480, "label": "date, year, month and day querystring lookups"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/36#issuecomment-392575160", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/36", "id": 392575160, "node_id": "MDEyOklzc3VlQ29tbWVudDM5MjU3NTE2MA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2018-05-28T17:30:52Z", "updated_at": "2018-05-28T17:30:52Z", "author_association": "OWNER", "body": "I've changed my mind about this.\r\n\r\n\"Select every record on the 3rd day of the month\" doesn't strike me as an actually useful feature.\r\n\r\n\"Select every record in 2018 / in May 2018 / on 1st May 2018\", if you are using the SQLite-preferred datestring format, are already supported using LIKE queries (or the startswith filter):\r\n\r\n* https://fivethirtyeight.datasettes.com/fivethirtyeight/inconvenient-sequel%2Fratings?timestamp__startswith=2017\r\n* https://fivethirtyeight.datasettes.com/fivethirtyeight/inconvenient-sequel%2Fratings?timestamp__startswith=2017-08\r\n* https://fivethirtyeight.datasettes.com/fivethirtyeight/inconvenient-sequel%2Fratings?timestamp__startswith=2017-08-29\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": 268262480, "label": "date, year, month and day querystring lookups"}, "performed_via_github_app": null}