chickadee » tick » define-named-query

define-named-query name query-expr #!key listing-formatprocedure

Convenient wrapper around the named-queries parameter.

basically adds an item to the list yielded by (named-queries), mapping name (symbol) to query-expr (query expression -- see the "Query expressions" section) and listing-format (string or #f -- see the "Format placeholders" section).

namess defined by define-named-query can be used as arguments to the tick query command on the command line.