Apache Calcite Go

Clone this repo:
  1. 75aac33 Bump golang.org/x/net from 0.17.0 to 0.23.0 by dependabot[bot] · 6 weeks ago main
  2. 513644f [CALCITE-6360] Add .asf.yaml to calcite-avatica-go repository by Francis Chuang · 7 weeks ago
  3. 423ac3a [CALCITE-6359] Update GitHub Actions workflows to use docker compose v2 by Francis Chuang · 7 weeks ago
  4. 6959af3 [CALCITE-6339] Replace hashicorp/go-uuid with google/uuid by Francis Chuang · 10 weeks ago
  5. a4daffd Bump google.golang.org/protobuf from 1.31.0 to 1.33.0 by dependabot[bot] · 3 months ago

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.

Testing

For instructions on how to run tests for the project, please see our testing guide.

Issues

We do not use Github to file issues. Please create an issue on Calcite's JIRA and select avatica-go as the component. For further information, please see the JIRA accounts guide.