Skip to content

Commit d17f18c

Browse files
committed
[Release] prepare for next development iteration
1 parent e13051d commit d17f18c

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
22
name = "obkv-table-client-rs"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
authors = ["OceanBase OBKV Developers", "CeresDB Authors <[email protected]>"]
55
edition = "2021"
66

77
[workspace.package]
8-
version = "0.1.0"
8+
version = "0.2.0"
99
authors = ["OceanBase OBKV Developers", "CeresDB Authors <[email protected]>"]
1010
edition = "2021"
1111

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
OBKV Table Client is Rust Library that can be used to access table data from [OceanBase](https://github.com/oceanbase/oceanbase) storage layer. Its access method is different from JDBC, it skips the SQL parsing layer, so it has significant performance advantage.
44

5+
## Examples
6+
A simple example could be found in [Demo](https://github.com/oceanbase/obkv-table-client-rs/blob/main/docs/simple_demo/simple_operation/demo.md).
7+
58
## Acknowledgment
69
The CeresDB team implemented this rust client from scratch. Thanks to the [CeresDB](https://github.com/CeresDB/ceresdb) team (CeresDB is a high-performance, distributed, cloud native time-series database).
710

@@ -13,3 +16,4 @@ Contributions are warmly welcomed and greatly appreciated. Here are a few ways y
1316

1417
## Licencing
1518
obkv-table-client-rs is under [MulanPSL - 2.0](http://license.coscl.org.cn/MulanPSL2) licence. You can freely copy and use the source code. When you modify or distribute the source code, please obey the MulanPSL - 2.0 licence.
19+
0

docs/simple_demo/simple_operation/demo.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ impl ObTableClient {
3939
A simple operation example is shown below:
4040
```rust simple operation example
4141
async fn simple_operation() {
42-
let client = build_normal_client();
42+
let client_handle = task::spawn_blocking(utils::common::build_normal_client);
43+
let client = client_handle.await.unwrap();
4344

4445
let result = client.insert(
4546
"your_table_name",
@@ -71,7 +72,8 @@ impl ObTableBatchOperation {
7172
A simple batch operation example is shown below:
7273
```rust batch operation example
7374
async fn batch_operation() {
74-
let client = utils::common::build_normal_client();
75+
let client_handle = task::spawn_blocking(utils::common::build_normal_client);
76+
let client = client_handle.await.unwrap();
7577

7678
// set number of operations in batch_op
7779
let mut batch_op = client.batch_operation(2);
@@ -105,7 +107,8 @@ impl ObTableClientQueryImpl {
105107
A simple query example is shown below:
106108
```rust query example
107109
async fn query() {
108-
let client = utils::common::build_normal_client();
110+
let client_handle = task::spawn_blocking(utils::common::build_normal_client);
111+
let client = client_handle.await.unwrap();
109112

110113
let query = client
111114
.query("your_table_name")

0 commit comments

Comments
 (0)