Picture of Rico 1837
Registered 10 years 245 days
Rico 1837 Tuesday, 30 November 2021, 06:52 PM in response to Anton
1 of 1 users consider this post helpful
Re: [JS] use SQL Statements / database config.json
there is a config.json file below with a declaration of a table and defined statements to add/change/delete/list the table rows.
with the statements defined you can use the api calls as described at the docs you linked.
like
{ "mt": "SqlExec", "statement": "schuhschrank_list" }
 or 
{ "mt": "SqlInsert", "statement": "schuhschrank_add" "args": { "name": "small schuschrank", "width": 200, "height": 100, "auflager": true } } 
hope that helps

Rico
schuhschrank_config.json
← You can define your color theme preference here