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

set -e

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

cd ../../docs-examples/go

10 11
go mod tidy

12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
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