Skip to content

Commit 12f6602

Browse files
Update VERSION and notes
1 parent 0ea0467 commit 12f6602

File tree

2 files changed

+25
-43
lines changed

2 files changed

+25
-43
lines changed

RELEASE_NOTES_LATEST.md

Lines changed: 24 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,42 @@
11
## Distribution
22

3-
Download from TypeDB Package Repository: https://cloudsmith.io/~typedb/repos/public-release/packages/?q=name:^typedb-console+version:3.5.0
3+
Download from TypeDB Package Repository: https://cloudsmith.io/~typedb/repos/public-release/packages/?q=name:^typedb-console+version:3.5.4
44

55

66
## New Features
7-
- **Make version argument not require other fields and unify error messaging**
8-
Fix an incorrect requirement of `username` and `address` when executing `console --version`. Additionally, unify the format of error messages and add colors (e.g., the "error" header is printed in bold red and argument references are printed in yellow, similar to some of the existing parsing errors).
9-
10-
11-
12-
## Bugs Fixed
13-
14-
15-
## Code Refactors
167

178

18-
## Other Improvements
19-
- **Fix incorrect error println**
20-
21-
- **Fix build and cargo lock**
22-
Fix build and cargo lock
23-
24-
- **Introduce 'create-init' command to load a new database from schema/data**
25-
26-
We introduce a new command `database create-init`, which
9+
## Bugs Fixed
10+
- **Fix optional argument parsing and add tests**
2711

28-
1) create the new database
29-
2) loads a provided schema file (from URL, or from local file)
30-
3) loads a provided data file (from URL or from local file)
12+
We fix a reported error where optional arguments (such as the sha for a `source` command) would cause errors when not present in a script. In particular, the next script line would be consumed as the sha.
3113

32-
Command format:
33-
```
34-
database create-init <db> <schema file> <data file> <[optional] schema file sha256 (hex or sha256:hex)> <[optional] data file sha256 (hex or sha256:hex)>
14+
For example, pasting the following script into a open transaction repl would error:
3515
```
16+
source attributes.tql
17+
source entities.tql
3618
37-
Usage example to load bookstore example from `typedb-examples`:
38-
```
39-
>> database create-init bookstore https://github.com/typedb/typedb-examples/releases/download/3.5.0/bookstore-schema.tql https://github.com/typedb/typedb-examples/releases/download/3.5.0/bookstore-data.tql
19+
++ source /Users/joshua/Documents/vaticle/gh_vaticle/typedb-console/attributes.tql
20+
source
21+
error: **Error executing command**
22+
Expected 'attributes.tql' to have sha256 'source', but calculated 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855',
4023
```
4124

42-
You can also optionally provide sha256 checksums to verify your files are correct (these come from the Github releases page):
43-
```
44-
>> database create-init bookstore https://github.com/typedb/typedb-examples/releases/download/3.5.0/bookstore-schema.tql https://github.com/typedb/typedb-examples/releases/download/3.5.0/bookstore-data.tql sha256:b2de488d9f64ccdfdba016029c7932be69ec5d35d18977c85bb12ad4cc97e95f sha256:828806afe1ce939d0ee87d6ae89598f5d7f967155c7757263b151673480bcad1
45-
```
25+
We fix this by annotating which commands are multiline and which are single line. Single-line commands always stop parsing at a newline. Only queries are allowed to be multiline at this point in time.
4626

47-
We've also upgraded the `source` command in a transaction to allow reading from a remote URL, not just local files:
48-
```
49-
bookstore::write >> source https://github.com/typedb/typedb-examples/releases/download/3.5.0/bookstore-data.tql
50-
```
51-
52-
This can also optionally take a sha256 (the `sha256:` prefix optional):
53-
```
54-
bookstore::write >> source https://github.com/typedb/typedb-examples/releases/download/3.5.0/bookstore-data.tql 828806afe1ce939d0ee87d6ae89598f5d7f967155c7757263b151673480bcad1
55-
```
27+
We also add a new assembly test, which runs an extensive script testing various parts of Console:
5628

57-
These commands can also receive local in relative or absolute path formats.
29+
- user management
30+
- database management
31+
- import/export
32+
- transaction management
33+
- single line and multi-line queries
5834

5935

36+
37+
## Code Refactors
38+
39+
40+
## Other Improvements
41+
6042

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.5.0
1+
3.5.4

0 commit comments

Comments
 (0)