Skip to content

Commit 8beb064

Browse files
authored
Prepare for release 3.4.0-rc0 (#294)
## Usage and product changes Update release notes and version. Cleanup CI from excessive branch filters. ## Implementation
1 parent afd09d2 commit 8beb064

File tree

6 files changed

+25
-70
lines changed

6 files changed

+25
-70
lines changed

.factory/automation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ build:
1212
quality:
1313
filter:
1414
owner: typedb
15-
branch: [master, development, "3.0"]
15+
branch: [master]
1616
dependency-analysis:
1717
image: typedb-ubuntu-22.04
1818
command: |
@@ -56,7 +56,7 @@ build:
5656
release:
5757
filter:
5858
owner: typedb
59-
branch: [master, "3.0"]
59+
branch: [master]
6060
validation:
6161
validate-dependencies:
6262
image: typedb-ubuntu-22.04

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ features = {}
4646

4747
[dependencies.typedb-driver]
4848
features = []
49-
rev = "6db6f947bbc8f47181f81f458f1f09e1985fb514"
5049
git = "https://github.com/typedb/typedb-driver"
50+
tag = "3.4.0-rc0"
5151
default-features = false
5252

5353
[dependencies.futures]

RELEASE_NOTES_LATEST.md

Lines changed: 18 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,32 @@
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
3+
Download from TypeDB Package Repository: https://cloudsmith.io/~typedb/repos/public-release/packages/?q=name:^typedb-console+version:3.4.0-rc0
44

55

66
## New Features
7-
- **Add database 'schema' command to retrieve the database schema**
8-
9-
10-
- **Increase transaction timeout**
11-
Set transaction timeout for opened transactions to 1 hour.
12-
13-
This change significantly lowers the impact of https://github.com/typedb/typedb-console/issues/287.
14-
7+
- **Introduce database export and import**
8+
Add database export and database import operations.
159

16-
- **Improve multiline query support**
17-
18-
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.
19-
20-
For example, pasting a console script opening a transaction, defining a schema containing newlines, and committing, is now possible:
10+
Database export saves the database information (its schema and data) on the client machine as two files at provided locations:
2111
```
22-
>> transaction schema test
23-
define
24-
entity person; # newlines are allowed in pasted scripts:
25-
26-
attribute name, value string;
27-
28-
person owns name;
29-
30-
commit
12+
# database export <name> <schema file location> <data file location>
13+
database export my-database export/my-database.typeql export/my-database.typedb
3114
```
3215

33-
Empty newlines when written _interactively_ still cause queries to be submitted. However, an explicit query `end;` clause is a valid alternative now:
34-
16+
Database import uses the exported files to create a new database with equivalent schema and data:
3517
```
36-
>> transaction schema test
37-
define
38-
entity person; # newlines are allowed in pasted scripts:
39-
40-
attribute name, value string;
41-
42-
person owns name;
43-
end; # <--- will submit immediately
18+
# database export <name> <schema file location> <data file location>
19+
database import their-database export/my-database.typeql export/my-database.typedb
4420
```
45-
46-
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:
47-
```
48-
> transaction schema test
49-
match $x isa person;
50-
51-
insert $y isa person;
52-
53-
commit
54-
```
55-
56-
To make this a "match" query and a separate "insert" query, we must use the `end;` markers:
57-
```
58-
> transaction schema test
59-
match $x isa person;
60-
end;
61-
62-
insert $y isa person;
63-
end;
64-
65-
commit
66-
```
67-
68-
**Note that now `end` is a reserved keyword and cannot be used as a type!**
69-
70-
21+
22+
23+
- **Support relative script and source commands**
24+
25+
We support using relative paths for the `--script` command (relative to the current directory), as well as relative paths for the REPL `source` command.
26+
27+
When `source` is invoked _from_ a script, the sourced file is relativised to the script, rather than the current working directory.
28+
29+
7130

7231
## Bugs Fixed
7332

@@ -76,8 +35,4 @@ Download from TypeDB Package Repository: https://cloudsmith.io/~typedb/repos/pub
7635

7736

7837
## Other Improvements
79-
80-
- **Update typedb-driver dependency for token-based authentication**
81-
82-
8338

VERSION

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

dependencies/typedb/repositories.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def typedb_driver():
1515
git_repository(
1616
name = "typedb_driver",
1717
remote = "https://github.com/typedb/typedb-driver",
18-
commit = "6db6f947bbc8f47181f81f458f1f09e1985fb514", # sync-marker: do not remove this comment, this is used for sync-dependencies by @typedb_driver
18+
tag = "3.4.0-rc0", # sync-marker: do not remove this comment, this is used for sync-dependencies by @typedb_driver
1919
)
2020

2121
def typeql():

0 commit comments

Comments
 (0)