|
1 | 1 | ## Distribution |
2 | 2 |
|
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 |
4 | 4 |
|
5 | 5 |
|
6 | 6 | ## 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 |
16 | 7 |
|
17 | 8 |
|
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** |
27 | 11 |
|
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. |
31 | 13 |
|
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: |
35 | 15 | ``` |
| 16 | + source attributes.tql |
| 17 | + source entities.tql |
36 | 18 | |
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', |
40 | 23 | ``` |
41 | 24 |
|
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. |
46 | 26 |
|
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: |
56 | 28 |
|
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 |
58 | 34 |
|
59 | 35 |
|
| 36 | + |
| 37 | +## Code Refactors |
| 38 | + |
| 39 | + |
| 40 | +## Other Improvements |
| 41 | + |
60 | 42 |
|
0 commit comments