mysql
The datasource.mysql
module allows make queries to a MySQL database
Usage:
Methods
query
query('<SQL QUERY>') result, error
Make a query. If an error occurred, it will be returns as second value
A result format:
{
-- row 1
{
<FIELD1_NAME> = <FIELD1_VALUE>,
<FIELD2_NAME> = <FIELD2_VALUE>,
...
},
-- row 2
{
<FIELD1_NAME> = <FIELD1_VALUE>,
<FIELD2_NAME> = <FIELD2_VALUE>,
...
},
-- row N
...
}
An example: