test_go.sh 535 字节
Newer Older
D
dingbo 已提交
1 2 3 4 5 6 7
#!/bin/bash

set -e

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

D
dingbo 已提交
8
cd ../../docs/examples/go
D
dingbo 已提交
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29

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