Trên GitHub, taosdata/driver-go đã đạt 99 sao, ngôn ngữ Go. taos go driver
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.
driver-go is the official Go language connector for TDengine. It implements the Go language database/sql interface,
allowing Go developers to create applications that interact with TDengine clusters.
2. Documentation
To use Go connector, please check Developer Guide, which includes how an
application can introduce the driver-go, 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 Go connector by themselves. To learn
about TDengine, you can visit the official documentation.
3. Prerequisites
System Requirements
Go >= 1.14 (1.23+ recommended)
For native connector: TDengine client library (libtaos.so)
For REST/WebSocket connector: no native library needed
Enable CGO with export CGO_ENABLED=1 when building or testing the native connector.
Ensure libtaos.so is installed in a standard library search path, or set LD_LIBRARY_PATH accordingly.
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/driver-go.git
cd driver-go
go build ./... # verify compilation
driver-go is a Go library, so go build ./... is the standard way to verify that all packages compile successfully.
5. Testing
5.1 Test Execution
Before running tests, ensure that the TDengine server is installed and that taosd and taosAdapter are running.
The database should be empty.
In the project directory, run go test ./... to execute the tests. The tests will connect to the local TDengine
server and taosAdapter for testing.
The output result PASS means the test passed, while FAIL means the test failed. For detailed information, run
go test -v ./....
# run the full test suite
go test ./...
# run with verbose output
go test -v ./...
Native connector tests require CGO enabled and a working libtaos.so installation.
REST/WebSocket tests do not require the TDengine native client library, but still require running taosd and taosAdapter.
5.2 Test Case Addition
Add test cases to the *_test.go file to ensure that the test cases cover the new code.
5.3 Performance Testing
Performance testing is in progress.
6. Packaging
driver-go is a Go module — no separate packaging step needed. Users import it via:
go get github.com/taosdata/driver-go/v3@latest
7. CI/CD
Build Workflow
Code Coverage
8. Submitting Issues
We welcome the submission of GitHub Issue. When
submitting, please provide the following information:
Description of the issue and whether it is consistently reproducible
Driver version
Connection parameters (excluding server address, username, and password)
TDengine version
9. Submitting PRs
We welcome developers to contribute to this project. When submitting PRs, please follow these steps:
Fork this project. Please 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).
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. Please refer
to 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 the CI passes, you can find your PR on
the codecov page to check the 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/driver-go là nguồn chính thức.
taosdata/driver-go có bao nhiêu sao?
taosdata/driver-go có 99 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/taosdata/driver-go. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
taosdata/driver-go có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho taosdata/driver-go. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
taosdata/driver-go còn đang phát triển không?
Commit gần nhất trên taosdata/driver-go là 1 tháng trước (theo timestamp GitHub). Repo có 38 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
taosdata/driver-go viết bằng ngôn ngữ gì?
taosdata/driver-go chủ yếu viết bằng Go. 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.
driver-go có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về driver-go.