py4sci

Previous topic

5.8. Other Functions

Next topic

6.1. Descriptor Commands

6. CommandsΒΆ

HTSQL query may contain a list of commands, building a command chain. Each command in a chain gets results of previous command as an input and passes the output to the next one.

There are two types of commands:
  • producers
  • renderers

Chain of commands looks as:

producer [ producer ]... renderer

This way chain consists of one or more producer command and only one renderer at the end of chain. In the following reference each command is marked with it’s type.

There’s a special subtype of producer: query processors. If HTSQL query has a path_clause, query processor tells how to handle this clause. That’s why queries with path_clause must contain one and only one query processor at very start of the command chain. In this case command chin will look as:

query-processor [ producer ]... renderer

Note: HTSQL has defined default query processor and default renderer commands. If not overridden, query processor default to select() and renderer defaults to html().