Snapshot của taosdata/taos-connector-jdbc: 70★ · Java. Connecting Java Application With a TDengine Database.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
taos-jdbcdriver is the official Java connector for TDengine, allowing Java developers to develop applications that access the TDengine database. taos-jdbcdriver implements the standard interfaces of the JDBC driver and supports functions such as data writing, querying, subscription, schemaless writing, and parameter binding.
2. Documentation
To use JDBC connector, please check Developer Guide, which includes how an application can introduce the taos-jdbcdriver, as well as examples of data writing, querying, schemaless writing, parameter binding, and data subscription.
For other reference information, please check Reference Manual, which includes version history, data types, example programs, API descriptions, and FAQs.
This quick guide is mainly for developers who like to contribute/build/test the JDBC connector by themselves. To learn about TDengine, you can visit the official documentation.
3. Prerequisites
System Requirements
JDK >= 8 (JDK 17 recommended)
Maven >= 3.6
For native connection: TDengine client library installed
If you are using a Mac system, please use the command sudo ln -s /usr/local/lib/libtaos.dylib /Library/Java/Extensions/libtaos.dylib to create a symbolic link for the taos dynamic library.
For native connection testing, ensure the TDengine client library is installed and accessible to the JVM.
Local Test Environment
TDengine has been deployed locally. For specific steps, please refer to Deploy TDengine. Please make sure taosd and taosAdapter have been started.
4. Building
git clone https://github.com/taosdata/taos-connector-jdbc.git
cd taos-connector-jdbc
mvn clean package -Dmaven.test.skip=true
Output: target/taos-jdbcdriver-<version>.jar
5. Testing
5.1 Test Execution
Execute mvn test in the project directory to run the tests. The test cases will connect to the local TDengine server and taosAdapter for testing.
After running the tests, the result similar to the following will be printed eventually. If all test cases pass, both Failures and Errors will be 0.
Make sure taosd and taosAdapter are running before executing the tests.
If you only need to verify packaging, use mvn clean package -Dmaven.test.skip=true from the build step above.
5.2 Test Case Addition
All tests are located in the src/test/java/com/taosdata/jdbc directory of the project. The directory is divided according to the functions being tested. You can add new test files or add test cases in existing test files.
The test cases use the JUnit framework. Generally, a connection is established and a database is created in the before method, and the database is droped and the connection is released in the after method.
5.3 Performance Testing
Performance testing is in progress.
6. Packaging
mvn clean package -Dmaven.test.skip=true
# Output: target/taos-jdbcdriver-<version>.jar
# For Maven Central deployment:
mvn clean deploy -Dmaven.test.skip=true
7. CI/CD
Build Workflow
Code Coverage
8. Submitting Issues
We welcome the submission of GitHub Issue. When submitting, please provide the following information:
Problem description, whether it always occurs, and it's best to include a detailed call stack.
JDBC driver version.
JDBC connection parameters (username and password not required).
TDengine server version.
9. Submitting PRs
We welcome developers to contribute to this project. When submitting PRs, please follow these steps:
Fork this project, refer to (how to fork a repo).
Create a new branch from the main branch with a meaningful branch name (git checkout -b my_branch). Do not modify the main branch directly.
Modify the code, ensure all unit tests pass, and add new unit tests to verify the changes.
Push the changes to the remote branch (git push origin my_branch).
Create a Pull Request on GitHub (how to create a pull request).
After submitting the PR, you can find your PR through the Pull Request. Click on the corresponding link to see if the CI for your PR has passed. If it has passed, it will display "All checks have passed". Regardless of whether the CI passes or not, you can click "Show all checks" -> "Details" to view the detailed test case logs.
After submitting the PR, if CI passes, you can find your PR on the codecov page to check the test coverage.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/taosdata/taos-connector-jdbc là nguồn chính thức.
taosdata/taos-connector-jdbc có bao nhiêu sao?
taosdata/taos-connector-jdbc có 70 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/taosdata/taos-connector-jdbc. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
taosdata/taos-connector-jdbc có phải mã nguồn mở không?
Có — taosdata/taos-connector-jdbc phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/taosdata/taos-connector-jdbc.
taosdata/taos-connector-jdbc còn đang phát triển không?
Commit gần nhất trên taosdata/taos-connector-jdbc là 9 ngày trước (theo timestamp GitHub). Repo có 41 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
taosdata/taos-connector-jdbc dùng license gì?
taosdata/taos-connector-jdbc phát hành theo license MIT. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
taosdata/taos-connector-jdbc là gì?
taosdata/taos-connector-jdbc (taosdata/taos-connector-jdbc) là dự án Java trên GitHub. Theo mô tả gốc: Connecting Java Application With a TDengine Database.
taosdata/taos-connector-jdbc viết bằng ngôn ngữ gì?
taosdata/taos-connector-jdbc chủ yếu viết bằng Java. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về taos-connector-jdbc?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về taos-connector-jdbc.