Skip to content

Commit 2955030

Browse files
Prepare release 3.5.0-rc0 (#306)
## Usage and product changes Bump version, prepare release notes
1 parent 5b4d988 commit 2955030

File tree

4 files changed

+38
-17
lines changed

4 files changed

+38
-17
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ features = {}
6161
[dependencies.typeql]
6262
features = []
6363
git = "https://github.com/typedb/typeql"
64-
tag = "3.2.0"
64+
tag = "3.5.0-rc0"
6565
default-features = false
6666

6767
[dependencies.typedb-driver]
6868
features = []
6969
git = "https://github.com/typedb/typedb-driver"
70-
tag = "3.4.4"
70+
tag = "3.5.0-rc0"
7171
default-features = false
7272

7373
[dependencies.serde_json]

RELEASE_NOTES_LATEST.md

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
## Distribution
22

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

55

66
## New Features
7-
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+
811

912
## Bugs Fixed
1013

@@ -13,19 +16,37 @@ Download from TypeDB Package Repository: https://cloudsmith.io/~typedb/repos/pub
1316

1417

1518
## Other Improvements
16-
- **Create specific exit error codes**
19+
- **Introduce 'create-init' command to load a new database from schema/data**
20+
21+
We introduce a new command `database create-init`, which
1722

18-
We generate specific error codes to check when executing commands and scripts programmatically.
19-
We now have the following exit codes:
23+
1) create the new database
24+
2) loads a provided schema file (from URL, or from local file)
25+
3) loads a provided data file (from URL or from local file)
26+
27+
Command format:
2028
```
21-
Success = 0,
22-
GeneralError = 1,
23-
CommandError = 2,
24-
ConnectionError = 3,
25-
UserInputError = 4,
26-
QueryError = 5,
29+
database create-init <db> <schema file> <data file> <[optional] schema file sha256 (hex or sha256:hex)> <[optional] data file sha256 (hex or sha256:hex)>
2730
```
2831

32+
Usage example to load bookstore example from `typedb-examples`:
33+
```
34+
>> 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
35+
```
2936

37+
You can also optionally provide sha256 checksums to verify your files are correct (these come from the Github releases page):
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 sha256:b2de488d9f64ccdfdba016029c7932be69ec5d35d18977c85bb12ad4cc97e95f sha256:828806afe1ce939d0ee87d6ae89598f5d7f967155c7757263b151673480bcad1
40+
```
41+
42+
We've also upgraded the `source` command in a transaction to allow reading from a remote URL, not just local files:
43+
```
44+
bookstore::write >> source https://github.com/typedb/typedb-examples/releases/download/3.5.0/bookstore-data.tql
45+
```
46+
47+
This can also optionally take a sha256 (the `sha256:` prefix optional):
48+
```
49+
bookstore::write >> source https://github.com/typedb/typedb-examples/releases/download/3.5.0/bookstore-data.tql 828806afe1ce939d0ee87d6ae89598f5d7f967155c7757263b151673480bcad1
50+
```
3051

31-
52+
These commands can also receive local in relative or absolute path formats.

VERSION

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

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-
tag = "3.4.4", # sync-marker: do not remove this comment, this is used for sync-dependencies by @typedb_driver
18+
tag = "3.5.0-rc0", # 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-
tag = "3.2.0", # sync-marker: do not remove this comment, this is used for sync-dependencies by @typedb_driver
25+
tag = "3.5.0-rc0", # sync-marker: do not remove this comment, this is used for sync-dependencies by @typedb_driver
2626
)

0 commit comments

Comments
 (0)