Skip to content

Commit 8cbe1e7

Browse files
Update to allow Unicode TypeQL variable names (#570)
## Usage and product changes We update TypeQL and tests to ensure that support for Unicode TypeQL variable names (typedb/typeql#310) is included. ## Implementation - Update TypeDB artifacts, and TypeQL and Behaviour dependencies - Add missing steps to test a new case: `delete` queries that throw an exception with a specialised exception - Update README links
1 parent 1d75fef commit 8cbe1e7

File tree

5 files changed

+22
-16
lines changed

5 files changed

+22
-16
lines changed

README.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,17 @@ This repository stores all TypeDB Drivers built by Vaticle.
1111

1212
See the table below for links to README files, documentation, and source code.
1313

14-
| Driver | Readme | Documentation | Driver location |
15-
|---------|--------|-------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
16-
| Rust | [README](https://github.com/vaticle/typedb-driver/tree/development/rust/README.md) | [Documentation](https://typedb.com/docs/clients/rust-driver) | [`rust/`](https://github.com/vaticle/typedb-driver/tree/development/rust) |
17-
| Python | [README](https://github.com/vaticle/typedb-driver/tree/development/python/README.md) | [Documentation](https://typedb.com/docs/clients/python-driver) | [`python/`](https://github.com/vaticle/typedb-driver/tree/development/python) |
18-
| Node.js | [README](https://github.com/vaticle/typedb-driver/tree/development/nodejs/README.md) | [Documentation](https://typedb.com/docs/clients/nodejs-driver) | [`nodejs/`](https://github.com/vaticle/typedb-driver/tree/development/nodejs) |
19-
| Java | [README](https://github.com/vaticle/typedb-driver/tree/development/java/README.md) | [Documentation](https://typedb.com/docs/clients/java-driver) | [`java/`](https://github.com/vaticle/typedb-driver/tree/development/java) |
20-
| C | Coming soon | Coming soon | [`c/`](https://github.com/vaticle/typedb-driver/tree/development/c) |
21-
| C++ | [README](https://github.com/vaticle/typedb-driver/tree/development/cpp/README.md) | Coming soon | [`cpp/`](https://github.com/vaticle/typedb-driver/tree/development/cpp) |
14+
| Driver | Readme | Documentation | Driver location |
15+
|---------|--------------------------------------------------------------------------------------|------------------------------------------------------------------|-------------------------------------------------------------------------------|
16+
| Rust | [README](https://github.com/vaticle/typedb-driver/tree/development/rust/README.md) | [Documentation](https://typedb.com/docs/drivers/rust/overview) | [`rust/`](https://github.com/vaticle/typedb-driver/tree/development/rust) |
17+
| Python | [README](https://github.com/vaticle/typedb-driver/tree/development/python/README.md) | [Documentation](https://typedb.com/docs/drivers/python/overview) | [`python/`](https://github.com/vaticle/typedb-driver/tree/development/python) |
18+
| Node.js | [README](https://github.com/vaticle/typedb-driver/tree/development/nodejs/README.md) | [Documentation](https://typedb.com/docs/drivers/nodejs/overview) | [`nodejs/`](https://github.com/vaticle/typedb-driver/tree/development/nodejs) |
19+
| Java | [README](https://github.com/vaticle/typedb-driver/tree/development/java/README.md) | [Documentation](https://typedb.com/docs/drivers/java/overview) | [`java/`](https://github.com/vaticle/typedb-driver/tree/development/java) |
20+
| C | [README](https://github.com/vaticle/typedb-driver/tree/development/c/README.md) | - | [`c/`](https://github.com/vaticle/typedb-driver/tree/development/c) |
21+
| C++ | [README](https://github.com/vaticle/typedb-driver/tree/development/cpp/README.md) | [Documentation](https://typedb.com/docs/drivers/cpp/overview) | [`cpp/`](https://github.com/vaticle/typedb-driver/tree/development/cpp) |
2222

2323
### Package hosting
24+
2425
Package repository hosting is graciously provided by [Cloudsmith](https://cloudsmith.com).
2526
Cloudsmith is the only fully hosted, cloud-native, universal package management solution, that
2627
enables your organization to create, store and share packages in any format, to any place, with total

dependencies/maven/artifacts.snapshot

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
@maven//:com_google_http_client_google_http_client_1_34_2
1616
@maven//:com_google_j2objc_j2objc_annotations_1_3
1717
@maven//:com_google_protobuf_protobuf_java_3_21_1
18-
@maven//:com_vaticle_typedb_typedb_cloud_runner_f78fdb0d3ac4c533c0eb9a2e02d986702435efe4
19-
@maven//:com_vaticle_typedb_typedb_runner_525f9e989ac9fb2d06a05e0ad61c711610803526
18+
@maven//:com_vaticle_typedb_typedb_cloud_runner_54c3f23385f356d830e1ab1bb66345acfce103e7
19+
@maven//:com_vaticle_typedb_typedb_runner_240c3c108f8cbf6e620e52c4df8730431ec13e3f
2020
@maven//:commons_codec_commons_codec_1_11
2121
@maven//:commons_io_commons_io_2_3
2222
@maven//:commons_logging_commons_logging_1_2

dependencies/vaticle/artifacts.bzl

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def vaticle_typedb_artifact():
2929
artifact_name = "typedb-server-{platform}-{version}.{ext}",
3030
tag_source = deployment["artifact"]["release"]["download"],
3131
commit_source = deployment["artifact"]["snapshot"]["download"],
32-
commit = "525f9e989ac9fb2d06a05e0ad61c711610803526",
32+
commit = "240c3c108f8cbf6e620e52c4df8730431ec13e3f",
3333
)
3434

3535
def vaticle_typedb_cloud_artifact():
@@ -39,10 +39,10 @@ def vaticle_typedb_cloud_artifact():
3939
artifact_name = "typedb-cloud-server-{platform}-{version}.{ext}",
4040
tag_source = deployment_private["artifact"]["release"]["download"],
4141
commit_source = deployment_private["artifact"]["snapshot"]["download"],
42-
commit = "f78fdb0d3ac4c533c0eb9a2e02d986702435efe4",
42+
commit = "54c3f23385f356d830e1ab1bb66345acfce103e7",
4343
)
4444

4545
maven_artifacts = {
46-
'com.vaticle.typedb:typedb-runner': '525f9e989ac9fb2d06a05e0ad61c711610803526',
47-
'com.vaticle.typedb:typedb-cloud-runner': 'f78fdb0d3ac4c533c0eb9a2e02d986702435efe4',
46+
'com.vaticle.typedb:typedb-runner': '240c3c108f8cbf6e620e52c4df8730431ec13e3f',
47+
'com.vaticle.typedb:typedb-cloud-runner': '54c3f23385f356d830e1ab1bb66345acfce103e7',
4848
}

dependencies/vaticle/repositories.bzl

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def vaticle_typeql():
3939
git_repository(
4040
name = "vaticle_typeql",
4141
remote = "https://github.com/vaticle/typeql",
42-
commit = "3a523f4d7d40b0c5d3b9af68f31a3859215fa671", # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_typeql
42+
commit = "025798c62d768404fb5453ef6e48bf4d8cb17b87", # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_typeql
4343
)
4444

4545
def vaticle_typedb_protocol():
@@ -55,5 +55,5 @@ def vaticle_typedb_behaviour():
5555
git_repository(
5656
name = "vaticle_typedb_behaviour",
5757
remote = "https://github.com/vaticle/typedb-behaviour",
58-
commit = "46a16939c1dd94aac6aebc3dd7e50e8280d3dfe5", # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_typedb_behaviour
58+
commit = "64430c4fb512a70d2f5cc02087e0b8561bff7417", # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_typedb_behaviour
5959
)

rust/tests/behaviour/query/language/steps.rs

+5
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ generic_step_impl! {
9090
assert_err!(typeql_delete(context, step).await);
9191
}
9292

93+
#[step(expr = "typeql delete; throws exception containing {string}")]
94+
async fn typeql_delete_throws_containing(context: &mut Context, step: &Step, exception: String) {
95+
assert!(typeql_delete(context, step).await.unwrap_err().to_string().contains(&exception));
96+
}
97+
9398
#[step(expr = "typeql update")]
9499
async fn typeql_update(context: &mut Context, step: &Step) -> TypeDBResult {
95100
let parsed = parse_query(step.docstring().unwrap())?;

0 commit comments

Comments
 (0)