I am happy to announce fdb crate version
v0.3.1 has been
released. This is the first release in the v0.3.x series and provides
support for FoundationDB client API version 710 using cargo feature
flag fdb-7_1.
Following are the API changes and new features in this release.
-
The
Rangetype now has ainto_partsmethod that lets you easily de-structure aRangevalue. When you have an ownedRangevalue, and you would like owned values of its parts, then you can use this method and avoid unnecessaryclone(). Theinto_partsidiom is also available onKeyValueandMappedKeyValuetypes. -
The
ReadTransactiontrait has support forget_range_split_pointswhich is an API version 710 feature. -
The
ReadTransactiontrait also has support for theget_mapped_rangefeature, which is an experimental feature in FoundationDB 7.1. This feature is automatically enabled when you use the cargo feature flagfdb-7_1.The
Rangetype now includes ainto_mapped_streammethod that returns a stream (asynchronous iterator) ofMappedKeyValue.You can find more information about the GetMappedRange feature here.
get_mapped_range.rsprovides an example of how this feature can be used. -
FoundationDB Tenant support is another experimental feature whose support is included in this release. Tenant support is also automatically enabled when you use the cargo feature flag
fdb-7_1.In the bindings Tenant support is implemented using types
Tenant,FdbTenantandTenantManagement. Theopen_tenantmethod onFdbDatabaseprovides a way to create a value ofFdbTenanttype and work with tenants in the cluster.
With the release of v0.3.x series, support for cargo feature flag
fdb-6_3 is deprecated. We will continue to support the cargo feature
flag fdb-6_3 in subsequent v0.3.x releases. It would be removed in
v0.4.x release, when support for API version 720 and cargo feature
flag fdb-7_2 would be introduced. Please plan your migrations
accordingly.
I would like to say a big thank you to the FoundationDB community for their support and answering my questions in the forums. This release would not have been possible without your help!
Please contact us if you have any questions or feedback.