You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We introduce the updated Python driver for the upcoming 3.0 release. To align with the updated Rust driver, we removed `Concept API` (so you could simplify your querying workflow with a single `tx.query()` entry point), squeezed sessions and transactions to standalone transactions, and remodeled messaging with the server.
51
-
52
-
As it's an alpha release, some of the features are temporarily disabled both on the server and the driver's side:
53
-
* Options;
54
-
* User management;
55
-
* Cloud connection with replicas information.
56
-
57
-
Moreover, we no longer support Python 3.8 as [its support comes to an end](https://devguide.python.org/versions/) and we want to offer the full support of our newly introduced timezones with the standard library equally for all the versions of the language.
49
+
-**Add concept documents for fetch queries.**
50
+
We add concept documents to support the results of the reintroduced `fetch` queries.
58
51
59
-
## Bugs Fixed
60
-
-**Fix native object ownership checks in python driver**
61
-
Multiple rarely used features of the python driver used to be broken because of the native object misuse.
52
+
In Rust, results of `fetch` are streams of `ConceptDocument`s. It is possible to work with the structured document as a Rust `struct`, but it's also possible to convert it to a `JSON` document and/or its `String` representation.
62
53
63
-
## Code Refactors
54
+
In Java, these results are presented as iterators over custom `JSON` class instances. A respective `toString` method is available.
55
+
56
+
In Python, these results are presented as iterators over standard `dict` instances (able to be printed).
57
+
58
+
Additionally, we add `QueryType` getters for general `QueryAnswer`s, so it's possible to check its type without collection.
59
+
60
+
Usage examples are shown in `README` for the Rust and the Python drivers. Example integration tests are also available for all 3 drivers.
61
+
62
+
63
+
-**Introduce 3.0 datetime-tz offsets and Rust driver documentation and tests.**
64
+
We introduce the second version of the Rust driver, adding TimeZone offsets for `datetime-tz` value types, fixing minor bugs and presenting the updated documentation and automated tests.
65
+
66
+
Rust driver changes:
67
+
* Add `datetime-tz` offsets;
68
+
* Refactor test structure to separate integration and behaviour tests using Bazel, not Cargo flags;
69
+
* Introduce example integration test for Rust and update README with the formatted code sample;
70
+
* Introduce updated 3.0 bdds for `connection` and `driver`;
71
+
* Introduce flags to run Rust bdds in `core` or `cloud` modes when TypeDB Cloud 3.x is implemented;
72
+
* Fix Rust driver docs parser and update generated docs.
64
73
74
+
Java and Python drivers changes:
75
+
* Add `datetime-tz` offsets;
76
+
* Rename `Thing` to `Instance`;
77
+
* Remove `ThingType`,
78
+
* Added `getLabel`/`get_label` for all `Concept` classes. Previously, it was only available for `Type`s.
65
79
66
-
## Other Improvements
67
-
-**Bumped API version in antora config**
80
+
Python driver changes:
81
+
* Add bdd steps to match the updated declarations.
82
+
83
+
84
+
-**Introduce 3.0 Python driver docs and tests.**
85
+
We introduce the second version of the Python driver, fixing a number of minor bugs from the first version, enhancing existing APIs, and presenting the updated documentation and automated tests.
86
+
87
+
## Bugs Fixed
88
+
89
+
90
+
## Code Refactors
68
91
69
-
-**Rename Maven groupId from "com.vaticle" to "com.typedb" to match the package path**
70
92
71
-
-**Fix CircleCI jobs for Maven installation and Python builds**
commit="94b79eb376e853a0a1c2b1ac838cb9d61f385100", # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_typedb_protocol
31
+
tag="3.0.0-alpha-6", # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_typedb_protocol
0 commit comments