homework-jianmu/examples/JDBC/taosdemo
dependabot[bot] fb883786f4
chore(deps): bump spring-core in /examples/JDBC/taosdemo (#20610)
Bumps [spring-core](https://github.com/spring-projects/spring-framework) from 5.3.20 to 5.3.26.
- [Release notes](https://github.com/spring-projects/spring-framework/releases)
- [Commits](https://github.com/spring-projects/spring-framework/compare/v5.3.20...v5.3.26)

---
updated-dependencies:
- dependency-name: org.springframework:spring-core
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-24 10:06:09 +08:00
..
.mvn/wrapper [TD-13408]<test>: move examples back to TDegnine (#10196) 2022-02-10 16:19:06 +08:00
src fix(driver): jdbc sample for 3.0 (#16235) 2022-08-22 13:26:59 +08:00
.gitignore [TD-13408]<test>: move examples back to TDegnine (#10196) 2022-02-10 16:19:06 +08:00
mvnw [TD-13408]<test>: move examples back to TDegnine (#10196) 2022-02-10 16:19:06 +08:00
mvnw.cmd [TD-13408]<test>: move examples back to TDegnine (#10196) 2022-02-10 16:19:06 +08:00
pom.xml chore(deps): bump spring-core in /examples/JDBC/taosdemo (#20610) 2023-03-24 10:06:09 +08:00
readme.md docs: update examples/jdbc demo readme (#18499) 2022-11-28 00:23:52 +08:00

readme.md

cd tests/examples/JDBC/taosdemo
mvn clean package -Dmaven.test.skip=true
# 先建表,再插入的
java -jar target/taosdemo-2.0.1-jar-with-dependencies.jar -host <hostname> -database <db name> -doCreateTable true -superTableSQL "create table weather(ts timestamp, f1 int) tags(t1 nchar(4))" -numOfTables 1000 -numOfRowsPerTable 100000000 -numOfThreadsForInsert 10 -numOfTablesPerSQL 10 -numOfValuesPerSQL 100
# 不建表,直接插入的
java -jar target/taosdemo-2.0.1-jar-with-dependencies.jar -host <hostname> -database <db name> -doCreateTable false -superTableSQL "create table weather(ts timestamp, f1 int) tags(t1 nchar(4))" -numOfTables 1000 -numOfRowsPerTable 100000000 -numOfThreadsForInsert 10 -numOfTablesPerSQL 10 -numOfValuesPerSQL 100

如果发生错误 Exception in thread "main" java.lang.UnsatisfiedLinkError: no taos in java.library.path 请检查是否安装 TDengine 客户端安装包或编译 TDengine 安装。如果确定已经安装过还出现这个错误,可以在命令行 java 后加 -Djava.library.path=/usr/local/lib 来指定寻找共享库的路径。