提交 f544c47a 编写于 作者: D dingbo

docs: change varaible name

上级 2c2c8586
......@@ -18,7 +18,7 @@ You'll need to have Python3 installed.
Run this command in your terminal to save TDengine cloud token as variables:
```bash
export TDENGINE_TOKEN=<token>
export TDENGINE_CLOUD_TOKEN=<token>
```
<!-- exclude -->
......@@ -36,7 +36,7 @@ Copy code bellow to your editor and run it with `python3` command.
import taosrest
import os
token = os.environ["TDENGINE_TOKEN"]
token = os.environ["TDENGINE_CLOUD_TOKEN"]
url = "https://cloud.tdengine.com"
conn = taosrest.connect(url=url, token=token)
......
......@@ -29,7 +29,7 @@ Run this command in your terminal to save TDengine cloud token as variables:
```bash
export TDENGINE_TOKEN=<token>
export TDENGINE_CLOUD_TOKEN=<token>
```
## Connect
......@@ -43,7 +43,7 @@ import java.sql.SQLException;
public class ConnectCloudExample {
public static void main(String[] args) throws SQLException {
String token = System.getenv("TDENGINE_TOKEN");
String token = System.getenv("TDENGINE_CLOUD_TOKEN");
String jdbcUrl = "jdbc:TAOS-RS://cloud.taosdata.com:8085?usessl=true&token=" + token;
Connection conn = DriverManager.getConnection(jdbcUrl);
System.out.println("Connected");
......
......@@ -20,7 +20,7 @@ require github.com/taosdata/driver-go/v2 develop
Run this command in your terminal to save TDengine cloud token as variables:
```bash
export TDENGINE_TOKEN=<token>
export TDENGINE_CLOUD_TOKEN=<token>
```
## Connect
......@@ -37,7 +37,7 @@ import (
)
func main() {
token := os.Getenv("TDENGIN_TOKEN")
token := os.Getenv("TDENGINE_CLOUD_TOKEN")
taosDSN := "https://cloud.taosdata.com?token=" + token
taos, err := sql.Open("taosRestful", taosDSN)
if err != nil {
......
......@@ -15,7 +15,7 @@ title: Connect with Rust Connector
Run this command in your terminal to save TDengine cloud token as variables:
```bash
export TDENGINE_TOKEN=<token>
export TDENGINE_CLOUD_TOKEN=<token>
```
## Connect
......@@ -24,7 +24,7 @@ export TDENGINE_TOKEN=<token>
use libtaos::*;
fn main() {
let token = std::env::var("TDENGINE_TOKEN").unwrap();
let token = std::env::var("TDENGINE_CLOUD_TOKEN").unwrap();
let dsn = format!("https://cloud.tdengine.com?token={}", token);
let taos = Taos::from_dsn(dsn)?;
}
......
......@@ -12,7 +12,7 @@ title: Connect with Node.js Connector
Run this command in your terminal to save TDengine cloud token as variables:
```bash
export TDENGINE_TOKEN=<token>
export TDENGINE_CLOUD_TOKEN=<token>
```
......@@ -24,7 +24,7 @@ const { options, connect } = require("td2.0-rest-connector");
async function test() {
options.url = "https://cloud.tdengine.com";
options.token = process.env.TDENGIN_TOKEN;
options.token = process.env.TDENGINE_CLOUD_TOKEN;
let conn = connect(options);
}
test();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册