commit | f3365b37a1739028251928a1b284e2d187c82d68 | [log] [tgz] |
---|---|---|
author | Francis Chuang <francischuang@apache.org> | Fri Aug 12 13:34:22 2022 +1000 |
committer | Francis Chuang <francischuang@apache.org> | Fri Aug 12 14:07:58 2022 +1000 |
tree | 18b6b66220db13b38e429c69005937fdc48540f2 | |
parent | a0292fb972c36a8b68488c2b206ec289a6e5935a [diff] |
[CALCITE-5235] Run Github Actions tests using docker and upgrade Go
Apache Calcite's Avatica Go is a Go database/sql driver for the Avatica server.
Avatica is a sub-project of Apache Calcite.
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.
We do not use Github to file issues. Please create an issue on Calcite's JIRA and select avatica-go
as the component.