3131 name as title,
3232 url as link,
3333 CASE type
34- WHEN 1 THEN ' green '
34+ WHEN 1 THEN ' blue '
3535 ELSE ' red'
3636 END as color,
3737 description, icon, active
@@ -49,9 +49,9 @@ FROM website;
4949``` sql
5050SELECT
5151 ' chart' as component,
52- ' Syracuse ' as title, ' area' as type;
53- SELECT month AS x, SUM (revenue) AS y
54- FROM income GROUP BY month;
52+ ' Quarterly Revenue ' as title, ' area' as type;
53+ SELECT quarter AS x, SUM (revenue) AS y
54+ FROM finances GROUP BY quarter
5555```
5656
5757<td >
@@ -63,13 +63,8 @@ FROM income GROUP BY month;
6363<td >
6464
6565``` sql
66- SELECT
67- ' form' as component,
68- ' User' as title,
69- ' Create new user' as validate;
70- SELECT
71- name, type, placeholder, required,
72- description, min, max
66+ SELECT ' form' as component, ' User' as title, ' Create new user' as validate;
67+ SELECT name, type, placeholder, required, description
7368FROM user_form;
7469
7570INSERT INTO user (first_name, last_name, birth_date)
@@ -93,6 +88,8 @@ WHERE $first_name IS NOT NULL;
9388
9489## How it works
9590
91+ ![ architecture diagram] ( ./docs/architecture.png )
92+
9693SQLPage is a [ web server] ( https://en.wikipedia.org/wiki/Web_server ) written in
9794[ rust] ( https://en.wikipedia.org/wiki/Rust_(programming_language) )
9895and distributed as a single executable file.
0 commit comments