Skip to content

Conversation

@glisom
Copy link
Owner

@glisom glisom commented Feb 10, 2026

Addresses GitHub issue #1 - users can now query health data for specific
date/time ranges using string literals and the BETWEEN operator.

New features:

  • Date/datetime string literals: '2026-02-05', '2026-02-05 16:00',
    '2026-02-05 16:30:45' are auto-detected and parsed as dates
  • BETWEEN operator: WHERE date BETWEEN '2026-02-05 16:00' AND '2026-02-05 17:00'
  • Hour duration unit (h): WHERE date > today() - 4h
  • DSL hoursAgo() convenience: .date(.hoursAgo(4))

Example query for the issue's use case:
SELECT sum(value) FROM active_calories
WHERE date BETWEEN '2026-02-05 16:00' AND '2026-02-05 17:00'

https://claude.ai/code/session_01NY4q94NWRUioq7BTEo3meh

…ions

Addresses GitHub issue #1 - users can now query health data for specific
date/time ranges using string literals and the BETWEEN operator.

New features:
- Date/datetime string literals: '2026-02-05', '2026-02-05 16:00',
  '2026-02-05 16:30:45' are auto-detected and parsed as dates
- BETWEEN operator: WHERE date BETWEEN '2026-02-05 16:00' AND '2026-02-05 17:00'
- Hour duration unit (h): WHERE date > today() - 4h
- DSL hoursAgo() convenience: .date(.hoursAgo(4))

Example query for the issue's use case:
  SELECT sum(value) FROM active_calories
  WHERE date BETWEEN '2026-02-05 16:00' AND '2026-02-05 17:00'

https://claude.ai/code/session_01NY4q94NWRUioq7BTEo3meh
Update all documentation pages to reflect the new BETWEEN operator,
date/datetime string literals, and hour duration support added in #1.

Pages updated:
- date-functions.md: Added custom date/time literals, BETWEEN, hours
- sql-syntax.md: Added BETWEEN, date literals, and new examples
- operators.md: Added BETWEEN range operator section
- examples.md: Added custom date/time query examples section
- swift-dsl.md: Added hoursAgo, between, and exact date references
- changelog.md: Added v1.3.0 entry for new features
- README.md: Updated features table

https://claude.ai/code/session_01NY4q94NWRUioq7BTEo3meh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants