未验证 提交 8b2618d2 编写于 作者: W wade zhang 提交者: GitHub

Merge pull request #13143 from taosdata/docs/dingbo/TD-15801

copy docs-exmple-test to branch 2.4
#!/bin/bash
set -e
pgrep taosd || taosd >> /dev/null 2>&1 &
pgrep taosadapter || taosadapter >> /dev/null 2>&1 &
cd ../../docs-examples/R
jar_path=`find ../../../debug/build -name taos-jdbcdriver-*-dist.jar`
echo jar_path=$jar_path
R -f connect_native.r --args $jar_path
# R -f connect_rest.r --args $jar_path # bug 14704
#!/bin/bash
set -e
taosd >> /dev/null 2>&1 &
taosadapter >> /dev/null 2>&1 &
cd ../../docs-examples/c
# 1
gcc connect_example.c -o connect_example -ltaos
./connect_example
# 2
taos -s "drop database if exists power"
gcc -o insert_example insert_example.c -ltaos
./insert_example
gcc -o async_query_example async_query_example.c -ltaos
./async_query_example
# 3
taos -s "drop database if exists power"
gcc -o stmt_example stmt_example.c -ltaos
./stmt_example
# 4
taos -s "drop database if exists power"
gcc -o multi_bind_example multi_bind_example.c -ltaos
./multi_bind_example
# 5
gcc -o query_example query_example.c -ltaos
./query_example
# 6
taos -s "drop database if exists test"
gcc -o line_example line_example.c -ltaos
./line_example
# 7
taos -s "drop database if exists test"
gcc -o telnet_line_example telnet_line_example.c -ltaos
./telnet_line_example
# 8
taos -s "drop database if exists test"
gcc -o json_protocol_example json_protocol_example.c -ltaos
./json_protocol_example
#!/bin/bash
set -e
pgrep taosd || taosd >> /dev/null 2>&1 &
pgrep taosadapter || taosadapter >> /dev/null 2>&1 &
cd ../../docs-examples/csharp
dotnet run --project connect.csproj
taos -s "drop database if exists power"
dotnet run --project sqlinsert.csproj
dotnet run --project query.csproj
dotnet run --project asyncquery.csproj
taos -s "drop database if exists power"
dotnet run --project stmtinsert.csproj
taos -s "drop database if exists test"
dotnet run --project influxdbline.csproj
taos -s "drop database if exists test"
dotnet run --project optstelnet.csproj
taos -s "drop database if exists test"
dotnet run --project optsjson.csproj
#!/bin/bash
set -e
taosd >> /dev/null 2>&1 &
taosadapter >> /dev/null 2>&1 &
cd ../../docs-examples/go
go mod tidy
go run ./connect/restexample/main.go
taos -s "drop database if exists power"
go run ./insert/sql/main.go
taos -s "drop database if exists power"
go run ./insert/stmt/main.go
taos -s "drop database if exists test"
go run ./insert/line/main.go
taos -s "drop database if exists test"
go run ./insert/telnet/main.go
taos -s "drop database if exists test"
go run ./insert/json/main.go
go run ./query/sync/main.go
#!/bin/bash
set -e
taosd >> /dev/null 2>&1 &
taosadapter >> /dev/null 2>&1 &
cd ../../docs-examples/java
mvn test
\ No newline at end of file
#!/bin/bash
set -e
pgrep taosd || taosd >> /dev/null 2>&1 &
pgrep taosadapter || taosadapter >> /dev/null 2>&1 &
cd ../../docs-examples/node
npm install
cd restexample;
node connect.js
cd ../nativeexample
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
#!/bin/bash
set -e
taosd >> /dev/null 2>&1 &
taosadapter >> /dev/null 2>&1 &
cd ../../docs-examples/python
# 1
taos -s "create database if not exists log"
python3 connect_example.py
# 2
taos -s "drop database if exists power"
python3 native_insert_example.py
# 3
taos -s "drop database power"
python3 bind_param_example.py
# 4
taos -s "drop database power"
python3 multi_bind_example.py
# 5
python3 query_example.py
# 6
python3 async_query_example.py
# 7
taos -s "drop database if exists test"
python3 line_protocol_example.py
# 8
taos -s "drop database test"
python3 telnet_line_protocol_example.py
# 9
taos -s "drop database test"
python3 json_protocol_example.py
# 10
# python3 subscribe_demo.py
#!/bin/bash
set -e
pgrep taosd || taosd >> /dev/null 2>&1 &
pgrep taosadapter || taosadapter >> /dev/null 2>&1 &
cd ../../docs-examples/rust
cargo run -p nativeexample --example connect
cargo run -p restexample --example connect
taos -s "drop database if exists power"
cargo run -p restexample --example insert_example
cargo run -p restexample --example query_example
taos -s "drop database if exists power"
cargo run -p nativeexample --example stmt_example
taos -s "drop database if exists test"
cargo run -p schemalessexample --example influxdb_line_example
taos -s "drop database if exists test"
cargo run -p schemalessexample --example opentsdb_telnet_example
taos -s "drop database if exists test"
cargo run -p schemalessexample --example opentsdb_json_example
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册