Skip to main content

Module queries

Module queries 

Source
Expand description

Typed SQL helpers against the live Things schema. Every query goes through prepare_cached; no string interpolation of user input.

Date semantics:

  • creationDate, userModificationDate, stopDate are REAL Unix seconds.
  • startDate, deadline are bit-packed integers (handled in later tasks).

Structs§

ListAnytimeParams
ListByTagParams
ListInboxParams
ListLogbookParams
ListProjectsParams
ListSomedayParams
ListTodayParams
ListTrashParams
ListUpcomingParams
SearchParams
Filter inputs to search. Each Option / Vec field is OFF when empty/None, matching the spec’s “all filters are optional” contract.

Enums§

ProjectStatusFilter

Functions§

get_project
get_tags_for_task
Public helper for the assign/unassign tools: returns the current tag titles attached to a single to-do (or empty if none). Wraps the per-task fetch so callers don’t have to deal with the HashMap shape.
get_todo
list_anytime
list_areas
list_by_tag
list_inbox
list_logbook
list_projects
list_someday
list_tags
list_today
list_trash
list_upcoming
search