test_node.sh 665 字节
Newer Older
1 2 3 4 5 6 7 8 9 10
#!/bin/bash

set -e

pgrep taosd || taosd >> /dev/null 2>&1 &
pgrep taosadapter || taosadapter >> /dev/null 2>&1 &

cd ../../docs-examples/node

npm install
11
cd restexample;
12

13 14 15
node connect.js

cd ../nativeexample
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37

node connect.js

taos -s "drop database if exists power"
node insert_example.js

node query_example.js 

taos -s "drop database if exists power"
node param_bind_example.js 

taos -s "drop database if exists power"
node multi_bind_example.js

taos -s "drop database if exists test"
node influxdb_line_example.js

taos -s "drop database if exists test"
node opentsdb_telnet_example.js

taos -s "drop database if exists test"
node opentsdb_json_example.js