Skip to content

Commit e0610da

Browse files
authored
Prepare for release 3.2.0-rc2 (#285)
## Usage and product changes Update release notes and dependencies for release 3.2.0-rc2 ## Implementation
1 parent 6ed11c3 commit e0610da

File tree

3 files changed

+61
-6
lines changed

3 files changed

+61
-6
lines changed

RELEASE_NOTES_LATEST.md

Lines changed: 58 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,65 @@
11
## Distribution
22

3-
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
44

55

66
## 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**
763

864

965
## Bugs Fixed
@@ -14,5 +70,4 @@ Download from TypeDB Package Repository: https://cloudsmith.io/~typedb/repos/pub
1470

1571
## Other Improvements
1672

17-
- **Update typedb-driver dependency for token-based authentication**
18-
No changes to the UI/UX.
73+

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.2.0-rc0
1+
3.2.0-rc2

dependencies/typedb/repositories.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ def typedb_driver():
1515
git_repository(
1616
name = "typedb_driver",
1717
remote = "https://github.com/typedb/typedb-driver",
18-
commit = "02edb1b7c4bcd3f5bc822634d667653964e2ab92", # sync-marker: do not remove this comment, this is used for sync-dependencies by @typedb_driver
18+
tag = "3.2.0-rc2", # sync-marker: do not remove this comment, this is used for sync-dependencies by @typedb_driver
1919
)
2020

2121
def typeql():
2222
git_repository(
2323
name = "typeql",
2424
remote = "https://github.com/typedb/typeql",
25-
commit = "7cbb621200f10f2cb741b57e82494ff9659813c6", # sync-marker: do not remove this comment, this is used for sync-dependencies by @typedb_driver
25+
tag = "3.2.0-rc2", # sync-marker: do not remove this comment, this is used for sync-dependencies by @typedb_driver
2626
)

0 commit comments

Comments
 (0)