Skip to main content

Module message

Module message 

Source
Expand description

The built-in message format: a Binding’s query results rendered through Jinja into a short headline, a title plus text in portable Markdown (dre_protocol::markdown).

Templates read results.<query>: value (first column of the first row), first.<column>, rows (at most max_rows), row_count (exact), columns and sets[n]. With neither text: nor file:, default_text writes one block per query.

Structs§

QueryResult
One query’s result as message templates see it.

Constants§

DEFAULT_MAX_ROWS
How many rows of each query results.<query>.rows holds by default.
MESSAGE_KEYS
A message output’s own options (besides the shared output keys).

Functions§

default_text
The default message: one block per query. A single value is label: value; one row is label: value lines; several rows are a list of at most ten, then + N more.
excerpt
One line for the log: the title and the start of the text, as plain text.
file_body
What a message output writes to its .md file.