[CALCITE-5313] Prepare for 5.2.0 release
1 file changed
tree: 2414dab7d49f5d5418c370dad4b7264dcdfb1b33
  1. .github/
  2. errors/
  3. generic/
  4. hsqldb/
  5. internal/
  6. message/
  7. phoenix/
  8. site/
  9. test-fixtures/
  10. .gitignore
  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. docker.sh
  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. go.mod
  29. go.sum
  30. http_client.go
  31. http_client_wrappers.go
  32. LICENSE
  33. NOTICE
  34. README.md
  35. result.go
  36. rows.go
  37. rows_go18.go
  38. statement.go
  39. statement_go18.go
  40. transaction.go
README.md

Apache Avatica/Phoenix SQL Driver

Go Reference 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

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/v5"

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.