未验证 提交 cfa5f1a6 编写于 作者: sangshuduo's avatar sangshuduo 提交者: GitHub

docs: fix rust.mdx (#11992)

* docs: refine connector doc

[TD-14839]

* docs: use TDengine CLI

[TD-14839]

* docs: replace JNI with navtive connection

[TD-14839]

* docs: make connectors doc use same preparition

[TD-14839]

* docs: refine connectors doc

[TD-14839]

* docs: refine connectors doc

[TD-14839]

* docs: refine connector docs

* docs: refine connector doc

[TD-14839]

* docs: refine connector doc

[TD-14839]

* docs: refine connector

[TD-14839]

* docs: fix faq path

* docs: refine cpp connector doc

* docs: refine cpp docs

* docs: fix java preparition

* docs: refine connector docs

* docs: refine connector docs

[TD-14839]

* docs: refine connector doc

[TD-14839]

* docs: refine connector docs

[TD-14839]

* docs: fix node.mdx

[TD-14839]

* docs: refine connector

[TD-14839]

* docs: refine cpp connector

[TD-14839]

* docs: correct bind parameter interface name

[TD-14839]

* docs: refine connector docs

[TD-14839]

* docs: refine connector

[TD-14839]

* docs: refine connector

[TD-14839]

* docs: refine connector docs

[TD-14839]

* docs: refine connector

[TD-14839]

* docs: fix connector tabs

[TD-14839]

* fix tabitem values

* docs: refine connector

[TD-14839]

* fix typo

* docs: fix connector

[TD-14839]

* fix csharp.mdx

* refine connector docs

question list is numerical

* refine go connector doc

* refine go.mdx

* docs: fix 03-connector.mdx

* docs: fix rust.mdx
上级 4254736e
......@@ -115,7 +115,7 @@ let conn2 = cfg.connect()?;
```rust
let pool = r2d2::Pool::builder()
.max_size(10000) // 最大连接数
.max_size(10000) // max connections
.build(cfg)?;
// ...
......@@ -221,10 +221,10 @@ let pool = r2d2::Pool::new(cfg)?;
```rust
use std::time::Duration;
let pool = r2d2::Pool::builder()
.max_size(5000) // 最大连接数
.max_lifetime(Some(Duration::from_minutes(100))) // 每个连接的最长存活时间
.min_idle(Some(1000)) // 最小空闲连接数
.connection_timeout(Duration::from_minutes(2)) // 连接超时时间
.max_size(5000) // max connections
.max_lifetime(Some(Duration::from_minutes(100))) // lifetime of each connection
.min_idle(Some(1000)) // minimal idle connections
.connection_timeout(Duration::from_minutes(2))
.build(cfg);
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册