-
-
Notifications
You must be signed in to change notification settings - Fork 674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
date, year, month and day querystring lookups #36
Comments
Consider for example https://fivethirtyeight.datasettes.com/fivethirtyeight/inconvenient-sequel%2Fratings The idea here is to be able to support querystring parameters like this:
This is similar to #64 but a fair bit more complicated. SQLite date functions are documented here: https://sqlite.org/lang_datefunc.html |
I've changed my mind about this. "Select every record on the 3rd day of the month" doesn't strike me as an actually useful feature. "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):
|
?timestamp___date=2017-07-17
- return every item where the timestamp falls on that date?timestamp___year=2017
- return every item where the timestamp falls within 2017?timestamp___month=1
- return every item where the month component is January?timestamp___day=10
- return every item where the day-of-the-month component is 10Follow on from #23
The text was updated successfully, but these errors were encountered: