How to use [mysql.scalar]
The reference page of mysql.scalar has its arguments, constraints and declaration.
This slot executes SQL returning a single value, such as an aggregate, and sets the value of its own node to the result. It works like [data.scalar], except it always uses MySQL. Below is an example, counting the records of a table.
mysql.connect:sakila
mysql.scalar:select count(*) from actor