[TD-1001] update the nodejs examples

This commit is contained in:
liu0x54 2020-07-31 06:11:05 +00:00
parent ef878e71ee
commit e9738fc6c6
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
*/ */
// Get the td-connector package // Get the td-connector package
const taos = require('td-connector'); const taos = require('td2.0-connector');
/* We will connect to TDengine by passing an object comprised of connection options to taos.connect and store the /* We will connect to TDengine by passing an object comprised of connection options to taos.connect and store the
* connection to the variable conn * connection to the variable conn

View File

@ -1,7 +1,7 @@
/* This example is to show the preferred way to use the td-connector */ /* This example is to show the preferred way to use the td-connector */
/* To run, enter node path/to/node-example.js */ /* To run, enter node path/to/node-example.js */
// Get the td-connector package // Get the td-connector package
const taos = require('td-connector'); const taos = require('td2.0-connector');
/* We will connect to TDengine by passing an object comprised of connection options to taos.connect and store the /* We will connect to TDengine by passing an object comprised of connection options to taos.connect and store the
* connection to the variable conn * connection to the variable conn