31
31
name as title,
32
32
url as link,
33
33
CASE type
34
- WHEN 1 THEN ' green '
34
+ WHEN 1 THEN ' blue '
35
35
ELSE ' red'
36
36
END as color,
37
37
description, icon, active
@@ -49,9 +49,9 @@ FROM website;
49
49
``` sql
50
50
SELECT
51
51
' 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
55
55
```
56
56
57
57
<td >
@@ -63,13 +63,8 @@ FROM income GROUP BY month;
63
63
<td >
64
64
65
65
``` 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
73
68
FROM user_form;
74
69
75
70
INSERT INTO user (first_name, last_name, birth_date)
@@ -93,6 +88,8 @@ WHERE $first_name IS NOT NULL;
93
88
94
89
## How it works
95
90
91
+ ![ architecture diagram] ( ./docs/architecture.png )
92
+
96
93
SQLPage is a [ web server] ( https://en.wikipedia.org/wiki/Web_server ) written in
97
94
[ rust] ( https://en.wikipedia.org/wiki/Rust_(programming_language) )
98
95
and distributed as a single executable file.
0 commit comments