homework-jianmu/tests/examples/JDBC/JDBCDemo
zyyang d2ec29715a
[TD-3410]<feature>: support nutz framework (#5600)
* [TD-3410]feature: adapted to nutz

* change

* change

* change

* change

* [TD-3447]<feature>: JDBC-RESTful and JDBC-JNI support setObject

* change

* change

* change

* change

* change

* change

* change

* change

* change

* change

* change

* change

* [TD-3548]<feature>: support ParameterMetaData in JDBC-RESTful and JDBC-JNI

* change

* change

* [TD-3446]<feature>: JDBC-JNI and JDBC-RESTful do not need invoke Class.forName any more

* change jdbc version

* change

* change

* change
2021-03-29 14:42:49 +08:00
..
src/main/java/com/taosdata/example change 2021-01-27 18:51:58 +08:00
.gitignore update jdbcTaosdemo 2020-09-25 10:26:58 +08:00
README-jdbc-windows.md [TD-2643,TD-2925]<fix>: update sim test case and JDBCDemo doc 2021-02-04 15:40:51 +08:00
pom.xml [TD-3410]<feature>: support nutz framework (#5600) 2021-03-29 14:42:49 +08:00
readme.md change 2021-01-27 16:17:23 +08:00

readme.md

How to Run the JDBC Demo Code On Linux OS

TDengine's JDBC demo project is organized in a Maven way so that users can easily compile, package and run the project. If you don't have Maven on your server, you may install it using

sudo apt-get install maven

Install TDengine Client

Make sure you have already installed a tdengine client on your current develop environment. Download the tdengine package on our website: https://www.taosdata.com/cn/all-downloads/ and install the client.

Run jdbcDemo using mvn plugin

run command:

mvn clean compile exec:java -Dexec.mainClass="com.taosdata.example.JDBCDemo"

and run with your customed args

mvn clean compile exec:java -Dexec.mainClass="com.taosdata.example.JDBCDemo" -Dexec.args="-host [HOSTNAME]"

Compile the Demo Code and Run It

To compile taos-jdbcdriver, go to the source directory TDengine/src/connector/jdbc and execute

mvn clean package -Dmaven.test.skip=true

To compile the demo project, go to the source directory TDengine/tests/examples/JDBC/JDBCDemo and execute

mvn clean package assembly:single

To run JDBCDemo.jar, go to TDengine/tests/examples/JDBC/JDBCDemo and execute

java -Djava.ext.dirs=../../../../src/connector/jdbc/target:$JAVA_HOME/jre/lib/ext -jar target/JDBCDemo-SNAPSHOT-jar-with-dependencies.jar -host [HOSTNAME]