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
Download from TypeDB Package Repository: https://cloudsmith.io/~typedb/repos/public-release/packages/?q=name:^typedb-console+version:3.2.0-rc0
3
+
Download from TypeDB Package Repository: https://cloudsmith.io/~typedb/repos/public-release/packages/?q=name:^typedb-console+version:3.2.0-rc2
4
4
5
5
6
6
## New Features
7
+
-**Improve multiline query support**
8
+
9
+
We improve multi-line query support to allow copy-pasting queries and scripts containing empty newlines. In particular this makes pasting entire schema definitions from files.
10
+
11
+
For example, pasting a console script opening a transaction, defining a schema containing newlines, and committing, is now possible:
12
+
```
13
+
>> transaction schema test
14
+
define
15
+
entity person; # newlines are allowed in pasted scripts:
16
+
17
+
attribute name, value string;
18
+
19
+
person owns name;
20
+
21
+
commit
22
+
```
23
+
24
+
Empty newlines when written _interactively_ still cause queries to be submitted. However, an explicit query `end;` clause is a valid alternative now:
25
+
26
+
```
27
+
>> transaction schema test
28
+
define
29
+
entity person; # newlines are allowed in pasted scripts:
30
+
31
+
attribute name, value string;
32
+
33
+
person owns name;
34
+
end; # <--- will submit immediately
35
+
```
36
+
37
+
Pasted query pipelines may now be ambiguous, such as the following example which by defaults executs a single "match-insert" query, even though there are newlines:
38
+
```
39
+
> transaction schema test
40
+
match $x isa person;
41
+
42
+
insert $y isa person;
43
+
44
+
commit
45
+
```
46
+
47
+
To make this a "match" query and a separate "insert" query, we must use the `end;` markers:
48
+
```
49
+
> transaction schema test
50
+
match $x isa person;
51
+
end;
52
+
53
+
insert $y isa person;
54
+
end;
55
+
56
+
commit
57
+
```
58
+
59
+
**Note that now `end` is a reserved keyword and cannot be used as a type!**
60
+
61
+
62
+
-**Add database 'schema' command to retrieve the database schema**
7
63
8
64
9
65
## Bugs Fixed
@@ -14,5 +70,4 @@ Download from TypeDB Package Repository: https://cloudsmith.io/~typedb/repos/pub
14
70
15
71
## Other Improvements
16
72
17
-
-**Update typedb-driver dependency for token-based authentication**
0 commit comments