From 0601028526b8a1e5c43878488be8b3be36168ccc Mon Sep 17 00:00:00 2001 From: dingbo Date: Mon, 5 Sep 2022 17:07:49 +0800 Subject: [PATCH] docs cloud --- .../en/15-programming/01-connect/01-python.md | 2 +- docs/en/15-programming/01-connect/03-go.md | 4 +++- docs/en/15-programming/01-connect/04-rust.md | 2 +- docs/en/15-programming/01-connect/05-node.md | 6 ++++-- .../en/15-programming/01-connect/06-csharp.md | 19 +++---------------- 5 files changed, 12 insertions(+), 21 deletions(-) diff --git a/docs/en/15-programming/01-connect/01-python.md b/docs/en/15-programming/01-connect/01-python.md index d3cc5c6ad3..7501ba6ab1 100644 --- a/docs/en/15-programming/01-connect/01-python.md +++ b/docs/en/15-programming/01-connect/01-python.md @@ -81,4 +81,4 @@ Copy code bellow to your editor and run it. {{#include docs/examples/python/develop_tutorial.py:connect}} ``` -For more sample code please refer to and . \ No newline at end of file +For how to write data and query data, please refer to and . \ No newline at end of file diff --git a/docs/en/15-programming/01-connect/03-go.md b/docs/en/15-programming/01-connect/03-go.md index 0500ed05b8..83e06993a0 100644 --- a/docs/en/15-programming/01-connect/03-go.md +++ b/docs/en/15-programming/01-connect/03-go.md @@ -54,7 +54,7 @@ $env:TDENGINE_GO_DSN="" :::note Replace with the real value, the format should be `https()/?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. ::: @@ -78,3 +78,5 @@ Finally, test the connection: ``` go run main.go ``` + +The client connection is then established. For how to write data and query data, please refer to and . \ No newline at end of file diff --git a/docs/en/15-programming/01-connect/04-rust.md b/docs/en/15-programming/01-connect/04-rust.md index 8f05161663..05e7a5afea 100644 --- a/docs/en/15-programming/01-connect/04-rust.md +++ b/docs/en/15-programming/01-connect/04-rust.md @@ -63,5 +63,5 @@ Copy following code to `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 and . diff --git a/docs/en/15-programming/01-connect/05-node.md b/docs/en/15-programming/01-connect/05-node.md index 08106c8f97..9ae5a37912 100644 --- a/docs/en/15-programming/01-connect/05-node.md +++ b/docs/en/15-programming/01-connect/05-node.md @@ -10,7 +10,7 @@ import TabItem from '@theme/TabItem'; ## Install Connector ```bash -npm i td2.0-rest-connector +npm install @tdengine/rest ``` ## Config @@ -56,4 +56,6 @@ To obtain the value of cloud token and URL, please log in [TDengine Cloud](https ```javascript {{#include docs/examples/node/connect.js}} -``` \ No newline at end of file +``` + +For how to write data and query data, please refer to and . \ No newline at end of file diff --git a/docs/en/15-programming/01-connect/06-csharp.md b/docs/en/15-programming/01-connect/06-csharp.md index 2ddd1ea12d..7255bdaf8a 100644 --- a/docs/en/15-programming/01-connect/06-csharp.md +++ b/docs/en/15-programming/01-connect/06-csharp.md @@ -58,22 +58,9 @@ Replace with real TDengine cloud DSN. To obtain the real value, please l ## Connect -``` XML - - - - Exe - net5.0 - enable - - - - - - - -``` ```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 and . \ No newline at end of file -- GitLab