Skip to content

Commit

Permalink
docs(rust): add stmt example
Browse files Browse the repository at this point in the history
  • Loading branch information
qevolg committed Dec 27, 2024
1 parent 2f3c1f9 commit d1c82cb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
13 changes: 12 additions & 1 deletion docs/en/07-develop/05-stmt.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ This is a [more detailed parameter binding example](https://github.com/taosdata/
```
</TabItem>
<TabItem label="Rust" value="rust">
The following example are applicable to versions v0.12.4 and above.

```rust
{{#include docs/examples/rust/restexample/examples/stmt2.rs}}
```

</TabItem>
<TabItem label="Node.js" value="node">

Expand All @@ -76,6 +76,17 @@ Not supported
</TabItem>
</Tabs>

<Tabs defaultValue="rust" groupId="lang">
<TabItem label="Rust" value="rust">
<details>
<summary>The following example are applicable to versions v0.12.3 and below</summary>
```rust
{{#include docs/examples/rust/restexample/examples/stmt.rs}}
```
</details>
</TabItem>
</Tabs>

## Native Connection

<Tabs defaultValue="java" groupId="lang">
Expand Down
13 changes: 12 additions & 1 deletion docs/zh/07-develop/05-stmt.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ import TabItem from "@theme/TabItem";
```
</TabItem>
<TabItem label="Rust" value="rust">
以下示例适用于 v0.12.4 及以上版本。

```rust
{{#include docs/examples/rust/restexample/examples/stmt2.rs}}
```

</TabItem>
<TabItem label="Node.js" value="node">

Expand All @@ -73,6 +73,17 @@ import TabItem from "@theme/TabItem";
</TabItem>
</Tabs>

<Tabs defaultValue="rust" groupId="lang">
<TabItem label="Rust" value="rust">
<details>
<summary>以下示例适用于 v0.12.3 及以下版本</summary>
```rust
{{#include docs/examples/rust/restexample/examples/stmt.rs}}
```
</details>
</TabItem>
</Tabs>

## 原生连接
<Tabs defaultValue="java" groupId="lang">
<TabItem label="Java" value="java">
Expand Down

0 comments on commit d1c82cb

Please sign in to comment.