Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
f544c47a
T
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1192
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f544c47a
编写于
6月 09, 2022
作者:
D
dingbo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docs: change varaible name
上级
2c2c8586
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
10 addition
and
10 deletion
+10
-10
docs-en/05-develop/01-connect/01-python.md
docs-en/05-develop/01-connect/01-python.md
+2
-2
docs-en/05-develop/01-connect/02-java.md
docs-en/05-develop/01-connect/02-java.md
+2
-2
docs-en/05-develop/01-connect/03-go.md
docs-en/05-develop/01-connect/03-go.md
+2
-2
docs-en/05-develop/01-connect/04-rust.md
docs-en/05-develop/01-connect/04-rust.md
+2
-2
docs-en/05-develop/01-connect/05-node.md
docs-en/05-develop/01-connect/05-node.md
+2
-2
未找到文件。
docs-en/05-develop/01-connect/01-python.md
浏览文件 @
f544c47a
...
...
@@ -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
)
...
...
docs-en/05-develop/01-connect/02-java.md
浏览文件 @
f544c47a
...
...
@@ -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"
);
...
...
docs-en/05-develop/01-connect/03-go.md
浏览文件 @
f544c47a
...
...
@@ -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
(
"TDENGIN
E_CLOUD
_TOKEN"
)
taosDSN
:=
"https://cloud.taosdata.com?token="
+
token
taos
,
err
:=
sql
.
Open
(
"taosRestful"
,
taosDSN
)
if
err
!=
nil
{
...
...
docs-en/05-develop/01-connect/04-rust.md
浏览文件 @
f544c47a
...
...
@@ -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
)
?
;
}
...
...
docs-en/05-develop/01-connect/05-node.md
浏览文件 @
f544c47a
...
...
@@ -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
.
TDENGIN
E_CLOUD
_TOKEN
;
let
conn
=
connect
(
options
);
}
test
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录