|
3 | 3 |
|
4 | 4 | Available through https://crates.io/crates/typeql. |
5 | 5 | ``` |
6 | | -cargo add typeql@3.2.0 |
| 6 | +cargo add typeql@3.5.0-rc0 |
7 | 7 | ``` |
8 | 8 |
|
9 | 9 |
|
10 | 10 | ## New Features |
11 | | -- **Add query end marker** |
| 11 | + |
| 12 | + |
| 13 | +## Bugs Fixed |
| 14 | + |
| 15 | + |
| 16 | +## Code Refactors |
| 17 | +- **Remove Java and update README** |
| 18 | + Remove deprecated Java code and grammar and update READMEs to align with the recent changes in TypeDB 3.x. |
12 | 19 |
|
13 | | - TypeQL query pipelines cannot be distinguished since query stages can be arbitrarily chained and concatenated. To resolve this, we introduce the `end;` marker. For example: |
14 | | - ``` |
15 | | - match ... |
16 | | - insert ... |
17 | | - end; |
18 | | - match ... |
19 | | - insert... |
20 | | - ``` |
21 | 20 |
|
22 | | - Is now correctly interpretable as two separate match-insert queries! Compared to before: |
| 21 | + |
| 22 | +## Other Improvements |
| 23 | +- **Bump behaviour** |
| 24 | + |
| 25 | +- **Simplify type statements, allow empty define queries, bring back BDD** |
| 26 | + |
| 27 | + Composite changes: |
| 28 | + 1) We clean up the grammar for Type statements in both Patterns and Definables, which now allow commas after a `<kind> <variable>` query: |
23 | 29 | ``` |
24 | | - match ... |
25 | | - insert ... |
26 | | - match ... |
27 | | - insert ... |
| 30 | + match entity $x, sub $y; |
28 | 31 | ``` |
| 32 | + is now legal with the comma. This is a more regular language that is easier to generate. |
29 | 33 |
|
30 | | - Where it was not clear if this is one match-insert-match-insert pipeline, two match-insert pipelines, or 4 separate queries, or anything in between! |
31 | | - |
32 | | - For simplicity, any query can be terminated with an 'end;` marker, though it is redundant in for schema queries and 'fetch' queries: |
| 34 | + 2) we allow empty define/undefine/redefine queries: |
33 | 35 | ``` |
34 | | - define ...; |
35 | | - end; # redundant! |
36 | | - |
37 | | - match ... |
38 | | - insert ... |
39 | | - end; # not redundant! |
40 | | - |
41 | | - match ... |
42 | | - insert ... |
43 | | - fetch { ... }; |
44 | | - end; # redundant! |
| 36 | + define |
45 | 37 | ``` |
46 | 38 |
|
| 39 | + This addresses: https://github.com/typedb/typedb/issues/7531 |
47 | 40 |
|
48 | | -- **Add prefix query parser** |
| 41 | + 3) We also re-enable half of our 2.x BDD suite, which parses every query in the behaviour repository (though we leave out the other 2.x half, which converts the parsed results back into strings, reparses, and validates the cycle is equivalent), ensuring we don't get parsing errors when we don't expect them and we do when they are expected. |
49 | 42 |
|
50 | | - We create a "query prefix parsing" API, which attempts to parse the maximal query prefix from the input. |
51 | 43 |
|
52 | | - This is designed to help applications like Console consume a single complete query at a time from a set of concatenated queries. |
| 44 | +- **Update README** |
53 | 45 |
|
54 | | - |
55 | | -- **Allow relates overrides to have lists** |
56 | | - |
57 | | - We fix one syntactic inconsistency, grammatically allowing list overrides for relation's roles: |
58 | | - ``` |
59 | | - define |
60 | | - relation sub-rel, relates sub-role[] as super-role[]; |
61 | | - ``` |
62 | | - |
63 | | -## Bugs Fixed |
64 | | - |
65 | | - |
66 | | -## Code Refactors |
67 | | -- **Refactor grammar: partial rules, cleanup** |
| 46 | +- **Update factory/automation.yml** |
| 47 | + Fix build. Remove excessive branches |
68 | 48 |
|
69 | | - We rename rules used for partial parsing to have suffix `_partial` rather than `_no_test` (randomized tests only use complete queries). |
70 | 49 |
|
71 | | - |
72 | | - |
73 | | -## Other Improvements |
74 | | -- **Fix unit test checks** |
75 | | - |
76 | | -- **Improve TypeQL syntax errors** |
77 | | - |
78 | 50 | - **Update README.md** |
79 | | - |
80 | | -- **Update dependencies reference** |
81 | | - Update dependencies reference to avoid conflicts with TypeDB server. |
| 51 | + Update contributors |
82 | 52 |
|
83 | 53 |
|
84 | 54 |
|
|
0 commit comments