[CALCITE-2550] Update release script to build tarballs with filenames in
form apache-calcite-avatica-go-x.x.x-src.tar.gz
2 files changed
tree: 801ca2c511acb826118ec6106a87f783ec2f13f1
  1. errors/
  2. generic/
  3. hsqldb/
  4. internal/
  5. message/
  6. phoenix/
  7. site/
  8. test-fixtures/
  9. .gitignore
  10. .travis.yml
  11. adapter.go
  12. class_mappings.go
  13. compat.go
  14. compat_go18.go
  15. connection.go
  16. connection_go18.go
  17. docker-compose.yml
  18. Dockerfile
  19. driver.go
  20. driver_go18_hsqldb_test.go
  21. driver_go18_phoenix_test.go
  22. driver_go18_test.go
  23. driver_hsqldb_test.go
  24. driver_phoenix_test.go
  25. driver_test.go
  26. dsn.go
  27. dsn_test.go
  28. gen-protobuf.bat
  29. gen-protobuf.sh
  30. go.mod
  31. go.sum
  32. Gopkg.lock
  33. Gopkg.toml
  34. http_client.go
  35. LICENSE
  36. make-release-artifacts.sh
  37. moby.yml
  38. NOTICE
  39. README.md
  40. result.go
  41. rows.go
  42. rows_go18.go
  43. statement.go
  44. statement_go18.go
  45. transaction.go
README.md

Apache Avatica/Phoenix SQL Driver

GoDoc Build Status

Apache Calcite's Avatica Go is a Go database/sql driver for the Avatica server.

Avatica is a sub-project of Apache Calcite.

Quick Start

If you are using Go 1.10 and below, install using dep:

$ dep ensure -add github.com/apache/calcite-avatica-go

If you are using Go 1.11 and above, install using Go modules:

$ go get github.com/apache/calcite-avatica-go

The Phoenix/Avatica driver implements Go's database/sql/driver interface, so, import the database/sql package and the driver:

import "database/sql"
import _ "github.com/apache/calcite-avatica-go/v3"

db, err := sql.Open("avatica", "http://localhost:8765")

Then simply use the database connection to query some data, for example:

rows := db.Query("SELECT COUNT(*) FROM test")

For more details, see the home page.

Release notes for all published versions are available on the history page.

Issues

We do not use Github to file issues. Please create an issue on Calcite's JIRA and select avatica-go as the component.