docs:cdiwadkar16-patch-4-45 - few minor
Rephrasing and spelling
This commit is contained in:
parent
bda8f423c0
commit
313e3be0e0
|
@ -30,7 +30,7 @@ REST connections are supported on all platforms that can run Rust.
|
||||||
|
|
||||||
Please refer to [version support list](/reference/connector#version-support).
|
Please refer to [version support list](/reference/connector#version-support).
|
||||||
|
|
||||||
The Rust Connector is still under rapid development and is not guaranteed to be backward compatible before 1.0. Recommend to use TDengine version 2.4 or higher to avoid known issues.
|
The Rust Connector is still under rapid development and is not guaranteed to be backward compatible before 1.0. We recommend using TDengine version 2.4 or higher to avoid known issues.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
@ -206,7 +206,7 @@ let conn: Taos = cfg.connect();
|
||||||
|
|
||||||
### Connection pooling
|
### Connection pooling
|
||||||
|
|
||||||
In complex applications, recommand to enable connection pool. Connection pool for [libtaos] is implemented using [r2d2].
|
In complex applications, we recommend enabling connection pools. Connection pool for [libtaos] is implemented using [r2d2].
|
||||||
|
|
||||||
As follows, a connection pool with default parameters can be generated.
|
As follows, a connection pool with default parameters can be generated.
|
||||||
|
|
||||||
|
@ -269,7 +269,7 @@ The [Taos] structure is the connection manager in [libtaos] and provides two mai
|
||||||
|
|
||||||
Note that Rust asynchronous functions and an asynchronous runtime are required.
|
Note that Rust asynchronous functions and an asynchronous runtime are required.
|
||||||
|
|
||||||
[Taos] provides partial Rust methodization of SQL to reduce the frequency of `format!` code blocks.
|
[Taos] provides a few Rust methods that encapsulate SQL to reduce the frequency of `format!` code blocks.
|
||||||
|
|
||||||
- `.describe(table: &str)`: Executes `DESCRIBE` and returns a Rust data structure.
|
- `.describe(table: &str)`: Executes `DESCRIBE` and returns a Rust data structure.
|
||||||
- `.create_database(database: &str)`: Executes the `CREATE DATABASE` statement.
|
- `.create_database(database: &str)`: Executes the `CREATE DATABASE` statement.
|
||||||
|
@ -279,7 +279,7 @@ In addition, this structure is also the entry point for [Parameter Binding](#Par
|
||||||
|
|
||||||
### Bind Interface
|
### Bind Interface
|
||||||
|
|
||||||
Similar to the C interface, Rust provides the bind interface's wraping. First, create a bind object [Stmt] for a SQL command from the [Taos] object.
|
Similar to the C interface, Rust provides the bind interface's wrapping. First, create a bind object [Stmt] for a SQL command from the [Taos] object.
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
let mut stmt: Stmt = taos.stmt("insert into ? values(? ,?)") ? ;
|
let mut stmt: Stmt = taos.stmt("insert into ? values(? ,?)") ? ;
|
||||||
|
|
Loading…
Reference in New Issue