Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
6a75237f
T
TDengine
项目概览
taosdata
/
TDengine
接近 2 年 前同步成功
通知
1191
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看板
未验证
提交
6a75237f
编写于
8月 08, 2022
作者:
W
wade zhang
提交者:
GitHub
8月 08, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #15717 from taosdata/docs/xiaolei/TD-17896-update-nodejs-3.0-reference-CN
docs(driver):update nodejs reference 3.0 in CN
上级
ef849670
fd18a2b8
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
139 addition
and
90 deletion
+139
-90
docs/examples/node/nativeexample/async_query_example.js
docs/examples/node/nativeexample/async_query_example.js
+1
-2
docs/examples/node/nativeexample/connect.js
docs/examples/node/nativeexample/connect.js
+17
-10
docs/examples/node/nativeexample/influxdb_line_example.js
docs/examples/node/nativeexample/influxdb_line_example.js
+1
-1
docs/examples/node/nativeexample/insert_example.js
docs/examples/node/nativeexample/insert_example.js
+6
-6
docs/examples/node/nativeexample/multi_bind_example.js
docs/examples/node/nativeexample/multi_bind_example.js
+5
-5
docs/examples/node/nativeexample/opentsdb_json_example.js
docs/examples/node/nativeexample/opentsdb_json_example.js
+1
-1
docs/examples/node/nativeexample/opentsdb_telnet_example.js
docs/examples/node/nativeexample/opentsdb_telnet_example.js
+1
-1
docs/examples/node/nativeexample/param_bind_example.js
docs/examples/node/nativeexample/param_bind_example.js
+15
-18
docs/examples/node/nativeexample/query_example.js
docs/examples/node/nativeexample/query_example.js
+1
-3
docs/examples/node/nativeexample/subscribe_demo.js
docs/examples/node/nativeexample/subscribe_demo.js
+49
-2
docs/examples/node/package.json
docs/examples/node/package.json
+2
-2
docs/examples/node/restexample/connect.js
docs/examples/node/restexample/connect.js
+2
-2
docs/zh/14-reference/03-connector/node.mdx
docs/zh/14-reference/03-connector/node.mdx
+38
-37
未找到文件。
docs/examples/node/nativeexample/async_query_example.js
浏览文件 @
6a75237f
const
taos
=
require
(
"
td2.0-connector
"
);
const
taos
=
require
(
"
@tdengine/client
"
);
const
conn
=
taos
.
connect
({
host
:
"
localhost
"
,
database
:
"
power
"
});
const
cursor
=
conn
.
cursor
();
...
...
@@ -18,4 +18,3 @@ try {
conn
.
close
();
},
2000
);
}
// bug here: jira 14506
docs/examples/node/nativeexample/connect.js
浏览文件 @
6a75237f
const
taos
=
require
(
"
td2.0-connector
"
);
const
{
options
,
connect
}
=
require
(
"
@tdengine/rest
"
);
var
conn
=
taos
.
connect
({
host
:
"
localhost
"
,
port
:
6030
,
user
:
"
root
"
,
password
:
"
taosdata
"
,
});
conn
.
close
();
async
function
test
()
{
options
.
path
=
"
/rest/sql
"
;
options
.
host
=
"
localhost
"
;
let
conn
=
connect
(
options
);
let
cursor
=
conn
.
cursor
();
try
{
let
res
=
await
cursor
.
query
(
"
SELECT server_version()
"
);
res
.
toString
();
}
catch
(
err
)
{
console
.
log
(
err
);
}
}
test
();
// run with: node connect.js
// output:
// Successfully connected to TDengine
// server_version() |
// ===================
// 3.0.0.0 |
docs/examples/node/nativeexample/influxdb_line_example.js
浏览文件 @
6a75237f
const
taos
=
require
(
"
td2.0-connector
"
);
const
taos
=
require
(
"
@tdengine/client
"
);
const
conn
=
taos
.
connect
({
host
:
"
localhost
"
,
...
...
docs/examples/node/nativeexample/insert_example.js
浏览文件 @
6a75237f
const
taos
=
require
(
"
td2.0-connector
"
);
const
taos
=
require
(
"
@tdengine/client
"
);
const
conn
=
taos
.
connect
({
host
:
"
localhost
"
,
...
...
@@ -11,11 +11,11 @@ try {
cursor
.
execute
(
"
CREATE STABLE meters (ts TIMESTAMP, current FLOAT, voltage INT, phase FLOAT) TAGS (location BINARY(64), groupId INT)
"
);
var
sql
=
`INSERT INTO power.d1001 USING power.meters TAGS(
California.SanFrancisco
, 2) VALUES ('2018-10-03 14:38:05.000', 10.30000, 219, 0.31000) ('2018-10-03 14:38:15.000', 12.60000, 218, 0.33000) ('2018-10-03 14:38:16.800', 12.30000, 221, 0.31000)
power.d1002 USING power.meters TAGS(
California.SanFrancisco
, 3) VALUES ('2018-10-03 14:38:16.650', 10.30000, 218, 0.25000)
power.d1003 USING power.meters TAGS(
California.LosAngeles
, 2) VALUES ('2018-10-03 14:38:05.500', 11.80000, 221, 0.28000) ('2018-10-03 14:38:16.600', 13.40000, 223, 0.29000)
power.d1004 USING power.meters TAGS(
California.LosAngeles
, 3) VALUES ('2018-10-03 14:38:05.000', 10.80000, 223, 0.29000) ('2018-10-03 14:38:06.500', 11.50000, 221, 0.35000)`
;
cursor
.
execute
(
sql
);
var
sql
=
`INSERT INTO power.d1001 USING power.meters TAGS(
'California.SanFrancisco'
, 2) VALUES ('2018-10-03 14:38:05.000', 10.30000, 219, 0.31000) ('2018-10-03 14:38:15.000', 12.60000, 218, 0.33000) ('2018-10-03 14:38:16.800', 12.30000, 221, 0.31000)
power.d1002 USING power.meters TAGS(
'California.SanFrancisco'
, 3) VALUES ('2018-10-03 14:38:16.650', 10.30000, 218, 0.25000)
power.d1003 USING power.meters TAGS(
'California.LosAngeles'
, 2) VALUES ('2018-10-03 14:38:05.500', 11.80000, 221, 0.28000) ('2018-10-03 14:38:16.600', 13.40000, 223, 0.29000)
power.d1004 USING power.meters TAGS(
'California.LosAngeles'
, 3) VALUES ('2018-10-03 14:38:05.000', 10.80000, 223, 0.29000) ('2018-10-03 14:38:06.500', 11.50000, 221, 0.35000)`
;
cursor
.
execute
(
sql
,{
'
quiet
'
:
false
}
);
}
finally
{
cursor
.
close
();
conn
.
close
();
...
...
docs/examples/node/nativeexample/multi_bind_example.js
浏览文件 @
6a75237f
const
taos
=
require
(
"
td2.0-connector
"
);
const
taos
=
require
(
"
@tdengine/client
"
);
const
conn
=
taos
.
connect
({
host
:
"
localhost
"
,
...
...
@@ -24,10 +24,10 @@ function insertData() {
);
// bind table name and tags
let
tagBind
=
new
taos
.
Taos
Bind
(
2
);
tagBind
.
bindBinary
(
"
California.SanFrancisco
"
);
tagBind
.
bindInt
(
2
);
cursor
.
stmtSetTbnameTags
(
"
d1001
"
,
tagBind
.
get
Bind
());
let
tagBind
=
new
taos
.
Taos
MultiBindArr
(
2
);
tagBind
.
multiBindBinary
([
"
California.SanFrancisco
"
]
);
tagBind
.
multiBindInt
([
2
]
);
cursor
.
stmtSetTbnameTags
(
"
d1001
"
,
tagBind
.
get
MultiBindArr
());
// bind values
let
valueBind
=
new
taos
.
TaosMultiBindArr
(
4
);
...
...
docs/examples/node/nativeexample/opentsdb_json_example.js
浏览文件 @
6a75237f
const
taos
=
require
(
"
td2.0-connector
"
);
const
taos
=
require
(
"
@tdengine/client
"
);
const
conn
=
taos
.
connect
({
host
:
"
localhost
"
,
...
...
docs/examples/node/nativeexample/opentsdb_telnet_example.js
浏览文件 @
6a75237f
const
taos
=
require
(
"
td2.0-connector
"
);
const
taos
=
require
(
"
@tdengine/client
"
);
const
conn
=
taos
.
connect
({
host
:
"
localhost
"
,
...
...
docs/examples/node/nativeexample/param_bind_example.js
浏览文件 @
6a75237f
const
taos
=
require
(
"
td2.0-connector
"
);
const
taos
=
require
(
"
@tdengine/client
"
);
const
conn
=
taos
.
connect
({
host
:
"
localhost
"
,
...
...
@@ -23,25 +23,22 @@ function insertData() {
);
// bind table name and tags
let
tagBind
=
new
taos
.
Taos
Bind
(
2
);
tagBind
.
bindBinary
(
"
California.SanFrancisco
"
);
tagBind
.
bindInt
(
2
);
cursor
.
stmtSetTbnameTags
(
"
d1001
"
,
tagBind
.
get
Bind
());
let
tagBind
=
new
taos
.
Taos
MultiBindArr
(
2
);
tagBind
.
multiBindBinary
([
"
California.SanFrancisco
"
]
);
tagBind
.
multiBindInt
([
2
]
);
cursor
.
stmtSetTbnameTags
(
"
d1001
"
,
tagBind
.
get
MultiBindArr
());
// bind values
let
rows
=
[
[
1648432611249
,
10.3
,
219
,
0.31
],
[
1648432611749
,
12.6
,
218
,
0.33
],
];
for
(
let
row
of
rows
)
{
let
valueBind
=
new
taos
.
TaosBind
(
4
);
valueBind
.
bindTimestamp
(
row
[
0
]);
valueBind
.
bindFloat
(
row
[
1
]);
valueBind
.
bindInt
(
row
[
2
]);
valueBind
.
bindFloat
(
row
[
3
]);
cursor
.
stmtBindParam
(
valueBind
.
getBind
());
cursor
.
stmtAddBatch
();
}
let
rows
=
[[
1648432611249
,
1648432611749
],
[
10.3
,
12.6
],
[
219
,
218
],
[
0.31
,
0.33
]];
let
valueBind
=
new
taos
.
TaosMultiBindArr
(
4
);
valueBind
.
multiBindTimestamp
(
rows
[
0
]);
valueBind
.
multiBindFloat
(
rows
[
1
]);
valueBind
.
multiBindInt
(
rows
[
2
]);
valueBind
.
multiBindFloat
(
rows
[
3
]);
cursor
.
stmtBindParamBatch
(
valueBind
.
getMultiBindArr
());
cursor
.
stmtAddBatch
();
// execute
cursor
.
stmtExecute
();
...
...
docs/examples/node/nativeexample/query_example.js
浏览文件 @
6a75237f
const
taos
=
require
(
"
td2.0-connector
"
);
const
taos
=
require
(
"
@tdengine/client
"
);
const
conn
=
taos
.
connect
({
host
:
"
localhost
"
,
database
:
"
power
"
});
const
cursor
=
conn
.
cursor
();
...
...
@@ -9,8 +9,6 @@ query.execute().then(function (result) {
// output:
// Successfully connected to TDengine
// Query OK, 2 row(s) in set (0.00317767s)
// ts | current |
// =======================================================
// 2018-10-03 14:38:05.000 | 10.3 |
...
...
docs/examples/node/nativeexample/subscribe_demo.js
浏览文件 @
6a75237f
const
taos
=
require
(
"
td2.0-connector
"
);
const
taos
=
require
(
"
@tdengine/client
"
);
const
conn
=
taos
.
connect
({
host
:
"
localhost
"
,
database
:
"
power
"
});
// 未完成
\ No newline at end of file
var
cursor
=
conn
.
cursor
();
function
runConsumer
()
{
// create topic
cursor
.
execute
(
"
create topic topic_name_example as select * from meters
"
);
let
consumer
=
taos
.
consumer
({
'
group.id
'
:
'
tg2
'
,
'
td.connect.user
'
:
'
root
'
,
'
td.connect.pass
'
:
'
taosdata
'
,
'
msg.with.table.name
'
:
'
true
'
,
'
enable.auto.commit
'
:
'
true
'
});
// subscribe the topic just created.
consumer
.
subscribe
(
"
topic_name_example
"
);
// get subscribe topic list
let
topicList
=
consumer
.
subscription
();
console
.
log
(
topicList
);
for
(
let
i
=
0
;
i
<
5
;
i
++
)
{
let
msg
=
consumer
.
consume
(
100
);
console
.
log
(
msg
.
topicPartition
);
console
.
log
(
msg
.
block
);
console
.
log
(
msg
.
fields
)
consumer
.
commit
(
msg
);
console
.
log
(
`=======consumer
${
i
}
done`
)
}
consumer
.
unsubscribe
();
consumer
.
close
();
// drop topic
cursor
.
execute
(
"
drop topic topic_name_example
"
);
}
try
{
runConsumer
();
}
finally
{
setTimeout
(()
=>
{
cursor
.
close
();
conn
.
close
();
},
2000
);
}
\ No newline at end of file
docs/examples/node/package.json
浏览文件 @
6a75237f
...
...
@@ -4,7 +4,7 @@
"main"
:
"index.js"
,
"license"
:
"MIT"
,
"dependencies"
:
{
"
td2.0-connector"
:
"^2.0.12
"
,
"
td2.0-rest-connector"
:
"^1
.0.0"
"
@tdengine/client"
:
"^3.0.0
"
,
"
@tdengine/rest"
:
"^3
.0.0"
}
}
docs/examples/node/restexample/connect.js
浏览文件 @
6a75237f
const
{
options
,
connect
}
=
require
(
"
td2.0-rest-connector
"
);
const
{
options
,
connect
}
=
require
(
"
@tdengine/rest
"
);
async
function
test
()
{
options
.
path
=
"
/rest/sqlt
"
;
...
...
@@ -17,4 +17,4 @@ test();
// output:
// server_version() |
// ===================
//
2.4.0.12
|
//
3.0.0.0
|
docs/zh/14-reference/03-connector/node.mdx
浏览文件 @
6a75237f
...
...
@@ -15,11 +15,11 @@ import NodeOpenTSDBTelnet from "../../07-develop/03-insert-data/_js_opts_telnet.
import NodeOpenTSDBJson from "../../07-develop/03-insert-data/_js_opts_json.mdx";
import NodeQuery from "../../07-develop/04-query-data/_js.mdx";
`
td2.0-connector` 和 `td2.0-rest-connector` 是 TDengine 的官方 Node.js 语言连接器。Node.js 开发人员可以通过它开发可以存取 TDengine 集群数据的应用软件
。
`
@tdengine/client` 和 `@tdengine/rest` 是 TDengine 的官方 Node.js 语言连接器。 Node.js 开发人员可以通过它开发可以存取 TDengine 集群数据的应用软件。注意:从 TDengine 3.0 开始 Node.js 原生连接器的包名由 `td2.0-connector` 改名为 `@tdengine/client` 而 rest 连接器的包名由 `td2.0-rest-connector` 改为 `@tdengine/rest`。并且不与 TDengine 2.x 兼容
。
`
td2.0-connector` 是**原生连接器**,它通过 TDengine 客户端驱动程序(taosc)连接 TDengine 运行实例,支持数据写入、查询、订阅、schemaless 接口和参数绑定接口等功能。`td2.0-rest-connector
` 是 **REST 连接器**,它通过 taosAdapter 提供的 REST 接口连接 TDengine 的运行实例。REST 连接器可以在任何平台运行,但性能略为下降,接口实现的功能特性集合和原生接口有少量不同。
`
@tdengine/client` 是**原生连接器**,它通过 TDengine 客户端驱动程序(taosc)连接 TDengine 运行实例,支持数据写入、查询、订阅、schemaless 接口和参数绑定接口等功能。`@tdengine/rest
` 是 **REST 连接器**,它通过 taosAdapter 提供的 REST 接口连接 TDengine 的运行实例。REST 连接器可以在任何平台运行,但性能略为下降,接口实现的功能特性集合和原生接口有少量不同。
Node.js 连接器源码托管在 [GitHub](https://github.com/taosdata/taos-connector-node)。
Node.js 连接器源码托管在 [GitHub](https://github.com/taosdata/taos-connector-node
/tree/3.0
)。
## 支持的平台
...
...
@@ -58,7 +58,7 @@ REST 连接器支持所有能运行 Node.js 的平台。
<TabItem value="Linux" label="Linux 系统安装依赖工具">
- `python` (建议`v2.7` , `v3.x.x` 目前还不支持)
- `
td2.0-connector` 2.0.6 支持 Node.js LTS v10.9.0 或更高版本, Node.js LTS v12.8.0 或更高版本;2.0.5 及更早版本支持 Node.js LTS v10.x 版本。
其他版本可能存在包兼容性的问题
- `
@tdengine/client` 3.0.0 支持 Node.js LTS v10.9.0 或更高版本, Node.js LTS v12.8.0 或更高版本;
其他版本可能存在包兼容性的问题
- `make`
- C 语言编译器,[GCC](https://gcc.gnu.org) v4.8.5 或更高版本
...
...
@@ -90,14 +90,14 @@ REST 连接器支持所有能运行 Node.js 的平台。
<TabItem value="install_native" label="安装原生连接器">
```bash
npm install
td2.0-connector
npm install
@tdengine/client
```
</TabItem>
<TabItem value="install_rest" label="安装 REST 连接器">
```bash
npm i
td2.0-rest-connector
npm i
nstall @tdengine/rest
```
</TabItem>
...
...
@@ -109,13 +109,13 @@ npm i td2.0-rest-connector
验证方法:
- 新建安装验证目录,例如:`~/tdengine-test`,下载 GitHub 上 [nodejsChecker.js 源代码](https://github.com/taosdata/
TDengine/tree/develop/examples/nodej
s/nodejsChecker.js)到本地。
- 新建安装验证目录,例如:`~/tdengine-test`,下载 GitHub 上 [nodejsChecker.js 源代码](https://github.com/taosdata/
taos-connector-node/blob/3.0/nodejs/example
s/nodejsChecker.js)到本地。
- 在命令行中执行以下命令。
```bash
npm init -y
npm install
td2.0-connector
npm install
@tdengine/client
node nodejsChecker.js host=localhost
```
...
...
@@ -128,11 +128,11 @@ node nodejsChecker.js host=localhost
<Tabs defaultValue="native">
<TabItem value="native" label="原生连接">
安装并引用 `
td2.0-connector
` 包。
安装并引用 `
@tdengine/client
` 包。
```javascript
//A cursor also needs to be initialized in order to interact with TDengine from Node.js.
const taos = require("
td2.0-connector
");
const taos = require("
@tdengine/client
");
var conn = taos.connect({
host: "127.0.0.1",
user: "root",
...
...
@@ -149,12 +149,12 @@ conn.close();
</TabItem>
<TabItem value="rest" label="REST 连接">
安装并引用 `
td2.0-rest-connector
` 包。
安装并引用 `
@tdengine/rest
` 包。
```javascript
//A cursor also needs to be initialized in order to interact with TDengine from Node.js.
import { options, connect } from "
td2.0-rest-connector
";
options.path = "/rest/sql
t
";
import { options, connect } from "
@tdengine/rest
";
options.path = "/rest/sql";
// set host
options.host = "localhost";
// set other options like user/passwd
...
...
@@ -190,26 +190,23 @@ let cursor = conn.cursor();
<NodeQuery />
## 更多示例程序
| 示例程序 | 示例程序描述 |
| ------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------- |
| [connection](https://github.com/taosdata/taos-connector-node/tree/develop/nodejs/examples/cursorClose.js) | 建立连接的示例。 |
| [stmtBindBatch](https://github.com/taosdata/taos-connector-node/tree/develop/nodejs/examples/stmtBindParamBatchSample.js) | 绑定多行参数插入的示例。 |
| [stmtBind](https://github.com/taosdata/taos-connector-node/tree/develop/nodejs/examples/stmtBindParamSample.js) | 一行一行绑定参数插入的示例。 |
| [stmtBindSingleParamBatch](https://github.com/taosdata/taos-connector-node/tree/develop/nodejs/examples/stmtBindSingleParamBatchSample.js) | 按列绑定参数插入的示例。 |
| [stmtUseResult](https://github.com/taosdata/taos-connector-node/tree/develop/nodejs/examples/stmtUseResultSample.js) | 绑定参数查询的示例。 |
| [json tag](https://github.com/taosdata/taos-connector-node/tree/develop/nodejs/examples/testJsonTag.js) | Json tag 的使用示例。 |
| [Nanosecond](https://github.com/taosdata/taos-connector-node/tree/develop/nodejs/examples/testNanoseconds.js) | 时间戳为纳秒精度的使用的示例。 |
| [Microsecond](https://github.com/taosdata/taos-connector-node/tree/develop/nodejs/examples/testMicroseconds.js) | 时间戳为微秒精度的使用的示例。 |
| [schemless insert](https://github.com/taosdata/taos-connector-node/tree/develop/nodejs/examples/testSchemalessInsert.js) | schemless 插入的示例。 |
| [subscribe](https://github.com/taosdata/taos-connector-node/tree/develop/nodejs/examples/testSubscribe.js) | 订阅的使用示例。 |
| [asyncQuery](https://github.com/taosdata/taos-connector-node/tree/develop/nodejs/examples/tset.js) | 异步查询的使用示例。 |
| [REST](https://github.com/taosdata/taos-connector-node/blob/develop/typescript-rest/example/example.ts) | 使用 REST 连接的 TypeScript 使用示例。 |
| [basicUse](https://github.com/taosdata/taos-connector-node/blob/3.0/nodejs/examples/queryExample.js) | 基本的使用如如建立连接,执行 SQL 等操作。 |
| [stmtBindBatch](https://github.com/taosdata/taos-connector-node/blob/3.0/nodejs/examples/bindParamBatch.js) | 绑定多行参数插入的示例。 | |
| [stmtBindSingleParamBatch](https://github.com/taosdata/taos-connector-node/blob/3.0/nodejs/examples/bindSingleParamBatch.js) | 按列绑定参数插入的示例。 |
| [stmtQuery](https://github.com/taosdata/taos-connector-node/blob/3.0/nodejs/examples/stmtQuery.js) | 绑定参数查询的示例。 |
| [schemless insert](https://github.com/taosdata/taos-connector-node/blob/3.0/nodejs/examples/schemaless.js) | schemless 插入的示例。 |
| [TMQ](https://github.com/taosdata/taos-connector-node/blob/3.0/nodejs/examples/tmq.js) | 订阅的使用示例。 |
| [asyncQuery](https://github.com/taosdata/taos-connector-node/blob/3.0/nodejs/examples/asyncQueryExample.js) | 异步查询的使用示例。 |
| [REST](https://github.com/taosdata/taos-connector-node/blob/3.0/typescript-rest/example/example.ts) | 使用 REST 连接的 TypeScript 使用示例。 |
## 使用限制
Node.js 连接器 >= v2.0.6
目前支持 node 的版本为:支持 >=v12.8.0 <= v12.9.1 || >=v10.20.0 <= v10.9.0 ;2.0.5 及更早版本支持 v10.x 版本,其他版本可能存在包兼容性的问题。
native 连接器(`@tdengine/client`) >= v3.0.0
目前支持 node 的版本为:支持 >=v12.8.0 <= v12.9.1 || >=v10.20.0 <= v10.9.0 ;2.0.5 及更早版本支持 v10.x 版本,其他版本可能存在包兼容性的问题。
## 其他说明
...
...
@@ -225,7 +222,7 @@ Node.js 连接器的使用参见[视频教程](https://www.taosdata.com/blog/202
2. Node.js 版本
连接器 >v2.0.6
目前兼容的 Node.js 版本为:>=v10.20.0 <= v10.9.0 || >=v12.8.0 <= v12.9.1
原生连接器 `@tdengine/client`
目前兼容的 Node.js 版本为:>=v10.20.0 <= v10.9.0 || >=v12.8.0 <= v12.9.1
3. "Unable to establish connection","Unable to resolve FQDN"
...
...
@@ -235,18 +232,22 @@ Node.js 连接器的使用参见[视频教程](https://www.taosdata.com/blog/202
### 原生连接器
|
td2.0-connector 版本
| 说明 |
|
-------------------- | ----------------------------------------------------------------
|
|
2.0.12 | 修复 cursor.close() 报错的 bug。
|
|
2.0.11 | 支持绑定参数、json tag、schemaless 接口等功能。
|
|
2.0.10 | 支持连接管理,普通查询、连续查询、获取系统信息、订阅功能等功能。
|
|
package name | version | TDengine version
| 说明 |
|
------------------|---------|---------------------|------------------------------------------------------------------
|
|
@tdengine/client | 3.0.0 | 3.0.0 | 支持TDengine 3.0 且不与2.x 兼容。
|
|
td2.0-connector | 2.0.12 | 2.4.x;2.5.x;2.6.x | 修复 cursor.close() 报错的 bug。
|
|
td2.0-connector | 2.0.11 | 2.4.x;2.5.x;2.6.x | 支持绑定参数、json tag、schemaless 接口等功能。
|
| td2.0-connector | 2.0.10 | 2.4.x;2.5.x;2.6.x | 支持连接管理,普通查询、连续查询、获取系统信息、订阅功能等功能。 |
### REST 连接器
| td2.0-rest-connector 版本 | 说明 |
| ------------------------- | ---------------------------------------------------------------- |
| 1.0.3 | 支持连接管理、普通查询、获取系统信息、错误信息、连续查询等功能。 |
| package name | version | TDengine version | 说明 |
|----------------------|---------|---------------------|---------------------------------------------------------------------------|
| @tdengine/rest | 3.0.0 | 3.0.0 | 支持 TDegnine 3.0,且不与2.x 兼容。 |
| td2.0-rest-connector | 1.0.7 | 2.4.x;2.5.x;2.6.x | 移除默认端口 6041。 |
| td2.0-rest-connector | 1.0.6 | 2.4.x;2.5.x;2.6.x | 修复create,insert,update,alter 等SQL 执行返回的 affectRows 错误的bug。 |
| td2.0-rest-connector | 1.0.5 | 2.4.x;2.5.x;2.6.x | 支持云服务 cloud Token; |
| td2.0-rest-connector | 1.0.3 | 2.4.x;2.5.x;2.6.x | 支持连接管理、普通查询、获取系统信息、错误信息、连续查询等功能。 |
## API 参考
[API 参考](https://docs.taosdata.com/api/td2.0-connector/)
[API 参考](https://docs.taosdata.com/api/td2.0-connector/)
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录