提交 06010285 编写于 作者: D dingbo

docs cloud

上级 651c1ca6
...@@ -81,4 +81,4 @@ Copy code bellow to your editor and run it. ...@@ -81,4 +81,4 @@ Copy code bellow to your editor and run it.
{{#include docs/examples/python/develop_tutorial.py:connect}} {{#include docs/examples/python/develop_tutorial.py:connect}}
``` ```
For more sample code please refer to <https://docs.tdengine.com/cloud/data-in/insert-data/> and <https://docs.tdengine.com/cloud/data-out/query-data/>. For how to write data and query data, please refer to <https://docs.tdengine.com/cloud/data-in/insert-data/> and <https://docs.tdengine.com/cloud/data-out/query-data/>.
\ No newline at end of file \ No newline at end of file
...@@ -54,7 +54,7 @@ $env:TDENGINE_GO_DSN="<goDSN>" ...@@ -54,7 +54,7 @@ $env:TDENGINE_GO_DSN="<goDSN>"
<!-- exclude --> <!-- exclude -->
:::note :::note
Replace <goDSN\> with the real value, the format should be `https(<cloud_host>)/?token=<token>`. Replace <goDSN\> with the real value, the format should be `https(<cloud_host>)/?token=<token>`.
To obtain the value of `goDSN`, please log in [TDengine Cloud](https://cloud.tdengine.com) and click "Connector" and then select "Go". To obtain the value of `goDSN`, please log in [TDengine Cloud](https://cloud.tdengine.com) and click "Data In" on the lef menu.
::: :::
<!-- exclude-end --> <!-- exclude-end -->
...@@ -78,3 +78,5 @@ Finally, test the connection: ...@@ -78,3 +78,5 @@ Finally, test the connection:
``` ```
go run main.go go run main.go
``` ```
The client connection is then established. For how to write data and query data, please refer to <https://docs.tdengine.com/cloud/data-in/insert-data/> and <https://docs.tdengine.com/cloud/data-out/query-data/>.
\ No newline at end of file
...@@ -63,5 +63,5 @@ Copy following code to `main.rs`. ...@@ -63,5 +63,5 @@ Copy following code to `main.rs`.
{{#include docs/examples/rust/cloud-example/src/main.rs}} {{#include docs/examples/rust/cloud-example/src/main.rs}}
``` ```
Then you can execute `cargo run` to test the connection. Then you can execute `cargo run` to test the connection. For how to write data and query data, please refer to <https://docs.tdengine.com/cloud/data-in/insert-data/> and <https://docs.tdengine.com/cloud/data-out/query-data/>.
...@@ -10,7 +10,7 @@ import TabItem from '@theme/TabItem'; ...@@ -10,7 +10,7 @@ import TabItem from '@theme/TabItem';
## Install Connector ## Install Connector
```bash ```bash
npm i td2.0-rest-connector npm install @tdengine/rest
``` ```
## Config ## Config
...@@ -56,4 +56,6 @@ To obtain the value of cloud token and URL, please log in [TDengine Cloud](https ...@@ -56,4 +56,6 @@ To obtain the value of cloud token and URL, please log in [TDengine Cloud](https
```javascript ```javascript
{{#include docs/examples/node/connect.js}} {{#include docs/examples/node/connect.js}}
``` ```
\ No newline at end of file
For how to write data and query data, please refer to <https://docs.tdengine.com/cloud/data-in/insert-data/> and <https://docs.tdengine.com/cloud/data-out/query-data/>.
\ No newline at end of file
...@@ -58,22 +58,9 @@ Replace <DSN\> with real TDengine cloud DSN. To obtain the real value, please l ...@@ -58,22 +58,9 @@ Replace <DSN\> with real TDengine cloud DSN. To obtain the real value, please l
## Connect ## Connect
``` XML
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="TDengine.Connector" Version="3.0.1" />
</ItemGroup>
</Project>
```
```C# ```C#
//{{#include docs/examples/csharp/cloud-example/Connect.cs}} {{#include docs/examples/csharp/cloud-example/connect/Program.cs}}
``` ```
The client connection is then established. For how to write data and query data, please refer to <https://docs.tdengine.com/cloud/data-in/insert-data/> and <https://docs.tdengine.com/cloud/data-out/query-data/>.
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册