You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: microservices/playground-ws/scripts/init.sql
+7-6
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,11 @@ CREATE TABLE templates (
2
2
id VARCHAR(255) PRIMARY KEY,
3
3
title VARCHAR(255),
4
4
description TEXT,
5
-
program TEXT
5
+
program TEXT,
6
+
result VARCHAR(255)
6
7
);
7
8
8
-
INSERT INTO templates VALUES('variableBinding', 'Variable binding', 'How variable binding works in Monkey language', '');
9
+
INSERT INTO templates VALUES('variableBinding', 'Variable binding', 'How variable binding works in Monkey language', '', '15');
9
10
UPDATE templates
10
11
SET program = (
11
12
SELECT program
@@ -16,7 +17,7 @@ SET program = (
16
17
)
17
18
WHERE id ='variableBinding';
18
19
19
-
INSERT INTO templates VALUES('controlFlow', 'Control flow', 'Control the execution flow of a Monkey program', '');
20
+
INSERT INTO templates VALUES('controlFlow', 'Control flow', 'Control the execution flow of a Monkey program', '', 'false');
20
21
UPDATE templates
21
22
SET program = (
22
23
SELECT program
@@ -27,7 +28,7 @@ SET program = (
27
28
)
28
29
WHERE id ='controlFlow';
29
30
30
-
INSERT INTO templates VALUES('arrayBuiltinFn', 'Arrays and built in functions', 'Arrays data structure as well as built in functions to work with arrays', '');
31
+
INSERT INTO templates VALUES('arrayBuiltinFn', 'Arrays and built in functions', 'Arrays data structure as well as built in functions to work with arrays', '', '[4, false, 1, 4, [99, 98, 97], 4, 25]');
31
32
UPDATE templates
32
33
SET program = (
33
34
SELECT program
@@ -38,7 +39,7 @@ SET program = (
38
39
)
39
40
WHERE id ='arrayBuiltinFn';
40
41
41
-
INSERT INTO templates VALUES('dictionary', 'Dictionary data structure', 'Working with dictionaries', '');
42
+
INSERT INTO templates VALUES('dictionary', 'Dictionary data structure', 'Working with dictionaries', '', '20');
42
43
UPDATE templates
43
44
SET program = (
44
45
SELECT program
@@ -49,7 +50,7 @@ SET program = (
49
50
)
50
51
WHERE id ='dictionary';
51
52
52
-
INSERT INTO templates VALUES('closures', 'Closures', 'Closures in Monkey language', '');
53
+
INSERT INTO templates VALUES('closures', 'Closures', 'Closures in Monkey language', '', '29');
0 commit comments